in reply to Re^2: Calls to Apache::Request's param method sometimes end the program and return no data
in thread Calls to Apache::Request's param method sometimes end the program and return no data

This is an example of a closure:

my $apr; sub handler { my $r = shift; $apr = Apache::Request->new($r); other_sub(); } sub other_sub { my $foo = $apr->some_method(); }
Basically, anything where a sub refers to a lexical defined outside of the sub.
  • Comment on Re^3: Calls to Apache::Request's param method sometimes end the program and return no data
  • Download Code