i know that, but it doesn't work if i use "use", since the block
will be eval()'d at compile time:
eval {
die unless $ENV{MOD_PERL};
use Apache::Constants qw(:common);
...
};
it complains if Apache::Constants is not installed.
Matt Sergeant wrote:
>
> On Thu, 18 May 2000, Kenneth Lee wrote:
>
> > arggg... i was sticked to "use" instead of "require"...
> > but how about if i've to import something?
>
> perldoc -f use
>
- writing code that works on machines with or without mod_pe... Kenneth Lee
- Re: writing code that works on machines with or witho... Matt Sergeant
- Re: writing code that works on machines with or w... Kenneth Lee
- Re: writing code that works on machines with ... Matt Sergeant
- Re: writing code that works on machines w... Kenneth Lee
- Re: writing code that works on machi... Matt Sergeant
- Re: writing code that works on machines with or w... Doug MacEachern
