Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

I've done quite a bit of work with PHP. Still do a fair amount. It is great for the majority of web work out there, because it does a lot of the work for you. It is a language specifically tailored for web work, with all sorts of functions in the standard library that simplify stuff like connecting to a database, reading form input, and so on. Still, one can get into the guts of things a little bit, so you don't feel like you're being hedged into doing things a certain way.

But that's not good enough for me.

Like, I suspect, a lot of other Perl Hackers, I like to have an insane amount of control over my apps. I like to be able to have my web applications interact seamlessly with any other utility I've written, and to use the same libraries. PHP sucks for pretty much anything but web-application stuff, so part of the reason all my own web stuff is written in Perl is that I can have it do what I want without trying to fit the square peg of PHP into the round hole of sysadminning or whatever.

As far as a strict comparison of CGI.pm (and other perl CGI tools) to PHP, I would have to say they are comparable. If you are comfortable with Perl, you'll prefer it to PHP. If you know a bit of Perl, but aren't fluent, you might prefer PHP. PHP was designed for the web, and it does its job pretty well.

LAI

__END__

In reply to Re: CGI/Perl vs PHP by LAI
in thread CGI/Perl vs PHP by gilbert0

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-25 17:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found