<?xml version="1.0" encoding="windows-1252"?>
<node id="206672" title="Re: Re^2: Mod Perl Usage on Virtual hosted domains" created="2002-10-20 12:56:05" updated="2005-07-30 14:12:27">
<type id="11">
note</type>
<author id="10277">
crazyinsomniac</author>
<data>
<field name="doctext">
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)?
&lt;p&gt;
I doubt they're being more clever, it's just that their product/language is lots simpler.
&lt;p&gt;
I will now quote [http://archive.develooper.com/advocacy@perl.org/msg01553.html] 
&lt;blockquote&gt;
&lt;PRE&gt;
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.

     &lt;/PRE&gt;&lt;/blockquote&gt;

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.
&lt;P&gt;
&lt;b&gt;update:&lt;/b&gt;&lt;Br&gt;
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 &lt;i&gt; Compatible&lt;/i&gt; RE, but not quite Perl re ( and lots of features in the current perl re engine are **experimental**)
&lt;P&gt;&amp;nbsp;&lt;BR&gt;&lt;TABLE CELLPADDING=0 CELLSPACING=3 BORDER=0 BGCOLOR="#FFFFFF"&gt;&lt;TR&gt;&lt;TD&gt;&lt;a href="/index.pl?node=crazyinsomniac&amp;lastnode_id=1072"&gt;&lt;FONT SIZE=4 COLOR="#333333"&gt;______craz&lt;b&gt;&lt;i&gt;y&lt;/i&gt;&lt;/b&gt;insomniac_____________________________&lt;/a&gt;&lt;br&gt;&lt;TT&gt;&lt;A HREF="http://www.ozzyosbourne.com/"&gt;&lt;FONT COLOR="#DDDDDD" SIZE=2&gt;Of all the things I've lost, I miss my mind the most.&lt;/A&gt;&lt;/TT&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;A HREF="http://www.divisionbyzero.com/burningman"&gt;&lt;FONT COLOR="#999999" SIZE=2&gt;&lt;TT&gt;perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"  &lt;/TT&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;
</field>
<field name="root_node">
206556</field>
<field name="parent_node">
206571</field>
</data>
</node>
