Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: perl or php?

by EvdB (Deacon)
on Nov 23, 2003 at 15:13 UTC ( [id://309287]=note: print w/replies, xml ) Need Help??


in reply to perl or php?

As most of the above posts have indicated perl is much more powerful than php, although php is better suited to persons beginning programming on the web.

The question I would ask you is "Do you want to write a few simple CGI scripts and leave it at that, or are you intending to learn to program?";

  • A few simple CGI scripts: Use PHP, it is a smaller, lighter language which is designed for CGI programming. You embed the code in the HTML and so it is quick to do simplo things such as just changing a single line on the page.
  • More complicated coding: Go for perl (or python, java etc). Perl is very fully featured and extensible, and as such will take longer to learn. However you need not learn all of it to get good results. Perl will allow you to do things that PHP simply is no suitable for, such as templating, controlling other software, inerfacing to C libraries, GUIs etc.

PHP is a kick bike, perl is a motor bike. If you need to get to the corner now a kick bike is easy to learn and quite quick. If you want to go on the motorway, you'll need to put in the extra bit of effort to ride a motorbike. Just don't forget your helmet( use strict; use warnings and for CGI, perl -T).

--tidiness is the memory loss of environmental mnemonics

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://309287]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-04-26 05:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found