I earn my daily bread with PHP. I'm just learning Perl, which I find fairly easy because PHP is, after all, a mix of several languages including Perl (just as Perl is a mix of others (awk, sed, shell)).
I'll say this in favor of Perl: I've found lots of stuff on which I told myself: "gee, I can't do this with PHP". What I don't like about Perl, and I'm sure you've heard this before, is its syntax. It's too easy and too tempting to obfuscate things, which is a double-edged sword.
With PHP (and even more with Python) you don't have such, uh, flexibility to overcomplicate things, or do them "my way". Which is a Good Thing(tm) for big projects, for consistency, for team work. Yes, you can do the same with Perl if you enforce coding standards, but it's somehow a different and more complicated level of standards because it involves syntax under a different context.
PHP was designed for dynamic web pages in mind and, in my little personal opinion, it does a great job. Oh, and I find it stupid too the movement of "wow, let's do everything in PHP now" (like GTK apps or webservers). I think Perl has more chances for that. Ignore those.
Ah, and you can control the session cookie with PHP, it's possible to control the expiration with session_set_cookie_params().
jaime.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.