Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Environment Variables

by synapse0 (Pilgrim)
on Aug 18, 2001 at 00:09 UTC ( [id://105799]=note: print w/replies, xml ) Need Help??


in reply to Environment Variables

You can do a
print "Content-Type: text/html\n\n"; foreach (keys %ENV) { print "$ENV{$_} <BR>\n"; }
and see what's available to you.

-Syn0
update: obviously that was really silly of me to leave off the key in the printed value.. sheesh.. workin in windows makes me stupid. Thanks for correcting that maverick.

Replies are listed 'Best First'.
Re: Re: Environment Variables
by maverick (Curate) on Aug 18, 2001 at 00:32 UTC
    Would also be helpful to see what key has what value :)
    print "Content-Type: text/html\n\n"; foreach (keys %ENV) { print "$_ => $ENV{$_} <BR>\n"; }
    'course Data::Dumper is your friend....
    use Data::Dumper; print "Content-Type: text/plain\n\n"; print Dumper \%ENV;

    /\/\averick
    perl -l -e "eval pack('h*','072796e6470272f2c5f2c5166756279636b672');"


      Of course you should remember to remove Data::Dumper afterwards... I'm told it is quite heavy on the processing

      Although I confess I've never used it :)

      Kevman

      Sorry, Apparently its not heavy on processing, just worth removing because of its actual size!!! (1000 lines)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-24 21:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found