Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Keep It Simple, Stupid
 
PerlMonks  

Re: The %ENV{} hash...

by CountZero (Bishop)
on Jul 31, 2006 at 12:28 UTC ( [id://564790]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to The %ENV{} hash...

Do you by chance run this under mod_perl? For security reasons you then have an almost empty environment.

From the docs:

ENVIRONMENT

Under CGI the Perl hash %ENV is magical in that it inherits environment variables from the parent process and will set them should a process spawn a child. However, with mod_perl we're in the parent process that would normally setup the common environment variables before spawning a CGI process. Therefore, mod_perl must feed these variables to %ENV directly. Normally, this does not happen until the response stage of a request when PerlHandler is called. If you wish to set variables that will be available before then, such as for a PerlAuthenHandler, you may use the PerlSetEnv configuration directive:

PerlSetEnv  SomeKey  SomeValue

You may also use the PerlPassEnv directive to pass an already existing environment variable to Perl's %ENV:

PerlPassEnv SomeKey

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Replies are listed 'Best First'.
Re^2: The %ENV{} hash...
by s_m_b (Acolyte) on Jul 31, 2006 at 12:37 UTC
    Thanks for the replies and wisdom.
    1) no, I'm running IIS.
    2) no, just standard Activestate install of perl


    I'd already run a foreach on the hash to find what was available, and there is a LOT of stuff there, most of which matches the VBSCript variables, just that the three ways of finding the login id don't see anything.
    HOwever, I'll continue the hunt, armed with new knowledge!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://564790]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.