[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-modperl
Subject: Re: CGI.pm and friends port to mp2
From: Lincoln Stein <lstein () cshl ! org>
Date: 2003-03-25 17:46:15
[Download RAW message or body]
At least with some versions of perl, the require gets evaluated at compile
time and raises an exception even if it is enclosed by the eval {} braces.
The only way to get around this is to eval the string.
I'm not sure whether this is a current issue or was a problem with 5.00503,
but I've kept it in.
Lincoln
> - why eval string:
>
> eval "require mod_perl";
>
> shouldn't it be:
>
> eval { require mod_perl };
>
> ?
>
>
> __________________________________________________________________
> Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/ mod_perl Guide ---> http://perl.apache.org
> mailto:stas@stason.org http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org http://ticketmaster.com
--
========================================================================
Lincoln D. Stein Cold Spring Harbor Laboratory
lstein@cshl.org Cold Spring Harbor, NY
========================================================================
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic