I've so far been able to convert any piece of PHP to Perl (haven't encountered Smarty yet, would be an interesting challenge), but the opposite is painful. I still want to be able to do automated conversions of PHP code to Perl code, but it's hard to emulate PHP's broken arrays, and writing numerous functions --with bug-for-bug compatibility-- sucks too.

PHP can be made fast nowadays, so performance is no longer a good argument against it. But it STILL, after so many years, cannot handle sufficient complexity or scale. But even if it could handle large scale programs in a nice way, I'd still not use it, because lack of anonymous functions, lack of lexical variables, lack of strict declaration mode, lack of real arrays, etc, keep me from being productive. I constantly have to search for alternatives to things that real programmers take for granted, and trying to make sense out of PHP's beginner-oriented documentation takes time.

Juerd # { site => 'juerd.nl', do_not_use => 'spamtrap', perl6_server => 'feather' }


In reply to Re: Perl and Infiltrating PHP Workplaces by Juerd
in thread Perl and Infiltrating PHP Workplaces by Withigo

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.