Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: %ENV on Windows 98

by csuhockey3 (Curate)
on Aug 17, 2004 at 02:23 UTC ( #383539=note: print w/replies, xml ) Need Help??


in reply to %ENV on Windows 98

is this what you are looking for?
foreach $key (sort(keys %ENV)) { print "VARIABLE $key = $ENV{$key}\n"; }
Which will give you below, with associated values
DOCUMENT_ROOT  
HTTP_COOKIE    
HTTP_HOST      
HTTP_REFERER   
HTTP_USER_AGENT  
HTTPS     
PATH    
QUERY_STRING   
REMOTE_ADDR  
REMOTE_HOST 
REMOTE_PORT     
REMOTE_USER 
REQUEST_METHOD    
REQUEST URI   
SCRIPT_FILENAME  
SCRIPT_NAME      
SERVER_ADMIN      
SERVER_NAME     
SERVER_PORT      
SERVER_SOFTWARE

Did that answer your question?

update: ikegami has a nice one liner. Are you looking for that, more like mine or something else?

Replies are listed 'Best First'.
Re^2: %ENV on Windows 98
by shn4002 (Initiate) on Aug 17, 2004 at 04:50 UTC
    Dear Monks ikegami and csuhockey3,
    You are so wonderful! Thanks for the help you're giving to this novice!
    Have a good one!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2021-03-07 13:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (121 votes). Check out past polls.

    Notices?