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)