Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: CGI scoping question

by WoodyWeaver (Monk)
on May 16, 2019 at 13:52 UTC ( [id://11100086]=note: print w/replies, xml ) Need Help??


in reply to CGI scoping question

One last point that might help a reader -- while the difference between $q->param() and $q->url_param() turned out to be interesting, I think the real issue with the CGI scoping came from the web server itself. I had
<Directory /var/www/html/id/bin> SetHandler perl-script PerlResponseHandler ModPerl::Registry PerlOptions +ParseHeaders Options +ExecCGI </Directory>
and that doesn't seem to like subroutines well. Switching to
<Directory /var/www/html/id/bin> SetHandler perl-script PerlResponseHandler ModPerl::PerlRun PerlOptions +ParseHeaders Options +ExecCGI </Directory>
and I haven't seen the problem since.

Replies are listed 'Best First'.
Re^2: CGI scoping question
by poj (Abbot) on May 16, 2019 at 19:24 UTC

    See here regarding mod_perl and using variables in subroutines.

    poj

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-03-28 14:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found