http://qs321.pair.com?node_id=383539


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!