in reply to Re^5: importing functions with "PerlModule" Apache directive
in thread importing functions with "PerlModule" Apache directive

I am using Registry. I also found (it seems) the reason of the weird behavior: the CGI module makes use of AUTOLOAD. I think Apache::Request should be more suited to my purposes in this case...
  • Comment on Re^6: importing functions with "PerlModule" Apache directive

Replies are listed 'Best First'.
Re^7: importing functions with "PerlModule" Apache directive
by Anonymous Monk on May 09, 2012 at 13:53 UTC

    I also found (it seems) the reason of the weird behavior: the CGI module makes use of AUTOLOAD.

    Nope, AUTOLOAD doesn't have anything to do with exporting

    And since Registry compiles your program into its own namespace, there is no way exporting stuff (which you don't do) in startup.pl into namespace main would affect the custom Registry namespace your program is compiled in

    Are you using unmodified CGI.pm? Which version?

      CGI is 3.59, unmodified, of course :)