Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by cfreak (Chaplain)
on Dec 02, 2004 at 19:42 UTC ( [id://411917]=note: print w/replies, xml ) Need Help??


in reply to Re: 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

Thanks for your reply. I will try the -X flag.

Can you give me an example some code that would cause a closure that you describe?

I'd love to just switch to a different module. Unfortunatly I use a lot of Apache's methods through Apache::Request since Apache::Request is a sub-class. I'd have to go through my entire program change all that so it probably wouldn't save me a lot of time :(

  • Comment on Re^2: Calls to Apache::Request's param method sometimes end the program and return no data

Replies are listed 'Best First'.
Re^3: Calls to Apache::Request's param method sometimes end the program and return no data
by perrin (Chancellor) on Dec 02, 2004 at 19:49 UTC
    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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://411917]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-20 04:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found