modperlers,
does it make sense if i put some mod_perl specific codes inside
an eval() so that the code runs on machines that have or haven't
mod_perl installed?
eval <<'MOD_PERL_CODE' if $ENV{MOD_PERL};
use Apache ();
my $r = Apache->request;
...
MOD_PERL_CODE
if i don't do so, perl will complain about Apache is not installed
on machines that doesn't have mod_perl installed.
kenneth
- Re: writing code that works on machines with or without mo... 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
