Well...PHP has more built-in functions and less use of modules. It doesn't have those handy Perl input / output variables, and it does let you embed code in your page. The two languages are actually quite different, aside from the core structure and functionality that all programming languages seem to share, and in my opinion at least, they don't have much overlap. Perl is faster to code in, and easier to write complicated algorithms with, but it isn't suited as well to inserting small pieces of code throughout a page, and most remote hosting accounts don't have mod_perl, so PHP has a significant speed advantage for high-volume, low complexity tasks.
I use Perl for admin functions and data processing, and PHP for most of my web pages. I often generate PHP from Perl, or write a rough draft of something in Perl and then rewrite in PHP once I have a good lock on what I'm trying to do.
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.