Perl Or PhP?
I heard a lot about PhP but I did not have the opportunity to play with it.
1) Is it better than Perl?
2) Are there tasks that you can do with PhP that cannot be done with perl? 3)Can someone, who knows perl, stick with perl without learning Php?
Thanks
Vick
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
Quoted 2 lines · vick Julius
I heard a lot about PhP but I did not have the opportunity to play with it.
1) Is it better than Perl?
A religious question if I ever heard one. I believe both packages have their uses, and so you need to evaluate how each tool meets the problem you need to solve. My personal tendency is to prototype in PHP to get the user interface reasonably set, but use Perl, CGI.pm, and Pq.pm for the bet-the-company assignments.
Many of the things I do involve Postgresql, and I find the Perl method, as opposed to the PHP method, allows for a smaller RAM footprint during page building.
The integration of static and active page content is more intituitive in PHP than in Perl. This is especially true for Web pages which have only a small amount of dynamic content: you can use a standard HTML tool to build the static stuff to your liking, then add just the PHP you need for the active side.
Quoted 1 line
2) Are there tasks that you can do with PhP that cannot be done with perl?
I haven't found any. On the other hand, I've found things that Perl can do that PHP can't, but the significance is minor. The one thing I do use a lot in Perl that is just damn difficult in PHP is C "helper" code, particular output from Lex/Yacc.
Quoted 1 line
3)Can someone, who knows perl, stick with perl without learning Php?
If you want to, I would guess. PHP isn't that hard, but it is a little different. Again, it depends on how many tools you want in your toolbox to solve problems.
Stephen Satchell
Signature · 3 lines
The human mind treats a new idea the way the body treats a strange protein: it rejects it. -- P. Medawar This posting is for entertainment purposes only; it is not a legal opinion.
Quoted 3 lines · vick Julius
I heard a lot about PhP but I did not have the opportunity to play with it.
1) Is it better than Perl?
Questions like this have been known to start wars.
Quoted 1 line
2) Are there tasks that you can do with PhP that cannot be done with perl?
None that I know of. I'm going to pretty confidently say that anything that can be done in PHP can be done in Perl. That being said, my personal preference is to use PHP for web-based applications. Best to know both in order to choose based on preference. If you know Perl (or have pretty much any programming experience) you will pick up PHP easily.
Quoted 2 lines
3)Can someone, who knows perl, stick with perl without learning Php?
I would say sure, absolutely. BUT...why WOULDN'T you want to know as many languages as possible? I can't think of a single reason NOT to learn PHP.
Signature · 3 lines
tyler at zerodivide dot cx AIM: zerodivide1101 Mobile SMS: tyler-mobile at zerodivide dot cx