Altho I was considering not replying, here goes...(Adding my 0.02 Eurocents in the flamewar)

PHP, IMHO, is oki for quick layouts, vague DB stuff and lite code. It is, however, no match for Perl.

The abstraction layer Perl has with DBI (not DBD::DBI as you noted) is unfound in PHP. Every RDBMS in PHP has it's own function for querying, connecting etc (thus making portability rather difficult). The PHP syntax is based heavily on Perl but I fear some more powerfull functionality has been dropped.

The fact that hashes and arrays are one and the same, the fact that both scalars and arrays/hashes are accessible thru $ (bye bye % and @) makes it a bit weird if you're making the step. The power Perl has lies in the fact that you can have a plain console tool and port it to CGI in a matter of minutes (if you're used to doing that stuff). I acknowledge PHP has PEAR but it doesn't have the diversity CPAN has. Ofcourse Perl has an advantage of several years but Perl also has the advantage of being multipurpose, a step PHP only recently took by doing GTK+ functionality. I also feel that the core functions provided in PHP are too numerous. Considering the speed claim... PHP is an Apache module. mod_perl runs as fast, even faster than PHP. PHP can be run as CGIs too and I'm sure Perl beats it at that too. What about the embedding? Perl has embed solutions too, several actually.

Rasmus and his team do deserve the attention PHP is getting, since it's fun, easy and flexible and they did a great job designing the language. But for some reason EVERY PHP programmer I know claims Perl is not as good as PHP. For some other reason, EVERY PHP programmer I know who wants to take that extra step in his programming career, switches to Perl and doesn't look back.

End Remark: It's not in the language, it's in the programming style. Every programming language has it's strength and it's weaknesses. Perl is powerfull at this, PHP at that. If we all stopped bickering for a second ...

Greetz
Beatnik
... Quidquid perl dictum sit, altum viditur.

In reply to Re: Perl vs. PHP by Beatnik
in thread Perl vs. PHP by jerrygarciuh

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



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.