in reply to Re^6: $cgi->param() values are not updated instantly when read in a subroutine
in thread $cgi->param() values are not updated instantly when read in a subroutine
I had a peek at the logs and I read something about $cgi (and maybe others) that it will not stay shared or so
You can't use my outside of subs in an Apache::Registry script. Refer to the mod_perl Guide. Possible solutions:
orsub foo { my ($cgi, ...) = @_; ... $cgi->... ... } sub main { my $cgi = ...; foo($cgi, ...); } main();
our $foo; sub foo { my (...) = @_; ... $cgi->... ... } sub main { local $cgi = ...; foo(...); } main();
|
|---|