Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
Perhaps because it isn't really, or only in a limited fashion (with lots of "extensions" disabled, giving only a very lite version of php)?

I doubt they're being more clever, it's just that their product/language is lots simpler.

I will now quote http://archive.develooper.com/advocacy@perl.org/msg01553.html

Description              Perl  PHP

Namespace management     Y    N 
File-scope globals       Y    N 
Regular expressions      Y    Y 

OOP support              Y    N(2)
Run time code mutability Y    Y   
Extensive lib collection Y    Y(4)

Closures                 Y    N   
anonymous subroutines    Y    N   
automatic code creation  Y    N   

Notes:
 (2) PHP support for objects is not much different than C++ support for
 (4) Not quite extensive, but it's getting there - PEAR is only a year or
     so old.

     
Since there is no way in perl to prevent a program from modifying `import' among other things, you can't share a perl process among different users.

update:
Also, perl's regex engine is a "beast", and there exist some race conditions (sorry, I don't got a link handy to a discussion), and PHP just uses PCRE, which is Perl Compatible RE, but not quite Perl re ( and lots of features in the current perl re engine are **experimental**)

 
______crazyinsomniac_____________________________
Of all the things I've lost, I miss my mind the most.
perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"


In reply to Re: Re^2: Mod Perl Usage on Virtual hosted domains by crazyinsomniac
in thread Mod Perl Usage on Virtual hosted domains by learn_forever

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!
  • 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, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            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.
  • Log In?
    Username:
    Password:

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

    How do I use this? | Other CB clients
    Other Users?
    Others examining the Monastery: (14)
    As of 2014-09-30 19:14 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      How do you remember the number of days in each month?











      Results (381 votes), past polls