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

Reply via email to