Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: HTTP Variables In A Hash

by Kanji (Parson)
on Dec 30, 2001 at 09:10 UTC ( [id://135210]=note: print w/replies, xml ) Need Help??


in reply to HTTP Variables In A Hash

I have a sneaking suspicion that you're looking for environmental variables, which are usually found in the %ENV hash and -- traditionally -- are in uppercase ...

  • $ENV{'SERVER_NAME'}
  • $ENV{'REQUEST_METHOD'}
  • $ENV{'HTTP_REFERER'}
  • etc.

OTOH, if you really are after form-submitted fields, take a look at CGI.pm's (alt.) import_names() function/method, which allows you to pull everything into a seperate namespace instead of a hash ...

import_names('VARIABLE');
print $VARIABLE::server_name;

    --k.


Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-20 04:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found