in reply to mod_perl v2

Either pass $r to each subroutine when you call it or have each sub get $r like this:
my $r = Apache2::RequestUtil->request;

Replies are listed 'Best First'.
Re^2: mod_perl v2
by Talroot (Novice) on Apr 15, 2008 at 04:59 UTC
    I was trying to avoid passing it into the subroutine as I want as few lines of duplicate code in each of the individual pages. I tried your alternate suggestion and I keep getting the error 'Can't locate object method "request" via package Apache2::RequestUtil"'. I had been loading that module with the httpd.conf and I tried adding it to the top of my package as well.
      Loading Apache2::RequestUtil doesn't give you any errors?