Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: %ENV in a .pm versus .cgi ?

by kennethk (Abbot)
on Jun 17, 2014 at 18:20 UTC ( #1090185=note: print w/ replies, xml ) Need Help??


in reply to %ENV in a .pm versus .cgi ?

The question is a bit under-constrained since we have no code to review, but a few possibilities:

  • Are you testing the module and script in the same environment? If you run the script command-line, and run the module under Apache context, %ENV will and should vary.

  • Your code may be localizing some values of %ENV. This is actually a good security practice, since it's a potential exploit channel. See perlsec.


#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.


Comment on Re: %ENV in a .pm versus .cgi ?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2015-08-30 11:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (348 votes), past polls