Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: System Variables

by archen (Pilgrim)
on Oct 09, 2002 at 23:33 UTC ( #204065=note: print w/ replies, xml ) Need Help??


in reply to Re: System Variables
in thread System Variables

might be a little more informative if you do something such as:

foreach( keys %ENV ) { print "$_ = $ENV{$_} \n"; }
Since what varables are available may vary from system to system. Of course just wanting to know "system variables" is sort of a vague question...


Comment on Re: Re: System Variables
Download Code
Re^3: System Variables
by Aristotle (Chancellor) on Oct 10, 2002 at 00:01 UTC
    Or perhaps more economically,
    while(my ($key, $val) = each %ENV) { print "$key = $val\n"; }
    since you're not sorting the keys anyway.

    Makeshifts last the longest.

      I'm just feeling a bit silly...
      perl -e'print$_,$|--?$/:qq?$"=$"?for%ENV'

      -Blake

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2014-07-10 06:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (200 votes), past polls