in reply to Re: Porting to mod_perl issues
in thread Porting to mod_perl issues

Ok, getting better now. By calling $Northlands::Global::dbh->prepare() it's working now. However, when I do something such as &Northlands::Global::somesub("param","param");, global.pl isn't receiving the parameters when I read them with @_;. Any ideas?

Thanks a lot :-)
Ralph

Replies are listed 'Best First'.
Re^3: Porting to mod_perl issues
by perrin (Chancellor) on Jun 14, 2004 at 18:24 UTC
    That should work fine. Are you sure that reading @_ is the problem? By the way, we don't use the "&" before subroutine calls anymore, except in special circumstances. See the perlsub man page.

      Hi, yup, I was actually passing along the parameter incorrectly. Forgot to include the $Northlands::Global::varname, it's working perfect now :-)

      Thanks a lot for all of your help!

      Ralph