Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Passing variables in PSGI

by Your Mother (Archbishop)
on Sep 08, 2014 at 15:39 UTC ( #1099868=note: print w/replies, xml ) Need Help??


in reply to Passing variables in PSGI

You declare your CGI (well, one of them) outside your handler and your handler has a nested named sub. Nesting named subs typical doesn’t work the way you think. Instead of trying to untangle it I would just recycle your CGI script verbatim and change the psgi code to look like this (CGI::Compile and CGI::Emulate::PSGI).

my $sub = CGI::Compile->compile("/path/to/YOUR-SCRIPT.cgi"); my $app = CGI::Emulate::PSGI->handler($sub);

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (1)
As of 2023-05-27 23:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?