note
Ovid
<p>[tachyon] wrote:</p>
<blockquote>CGI::Simple uses SelfLoader to avoid compiling methods that are rarely used. You do this by placing these methods below a __DATA__ token. At compile time compilation stops at the __DATA__ token.</blockquote>
<p>I didn't notice this part at first. [http://perl.apache.org/guide/porting.html#_END_and_DATA_tokens|mod_perl scripts cannot contain <tt>__DATA__</tt> tokens]. Do you have a solution for this? I suppose you can make a separate <tt>mod_perl</tt> implmentation without the <tt>__DATA__</tt> token. Since the performance issue you're resolving is load time, this really doesn't apply in this instance. However, then you have <tt>CGI::Simple</tt>, <tt>CGI::Simple::Standard</tt>, and <tt>CGI::Simple::mod_perl</tt>. I don't see a problem with that if you really need those namespaces to address these issues, but I wonder if others would object.</p>
<p>Cheers,<br />
<a href="/index.pl?node=Ovid&lastnode_id=1072">Ovid</a></p>
<p><small>Join the <a href="http://setiathome.ssl.berkeley.edu/stats/team/team_86606.html">Perlmonks Setiathome Group</a> or just click on the the link and check out our stats.</small></p>
145790
145839