in reply to need understanding
If this is not what you need, then please be more specific.while (my($key,$val) = each %ENV) { print "$key => $val\n"; }
UPDATE:
The 'HOME' key contains the path to a user's home dir,
the 'USERNAME' contains the user's username, but you can't
get their password from the EVIRONMENT - that would be
BAD BAD BAD! Think about it.
UPDATE2:
If you are looking for a configuration file like perrin
suggested below, check out How to assign a variable with a value read from a config file.
jeffa
"You can pick your friends and you can pick your nose, but you can't pick your friend's nose."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (jeffa) Re: need understanding
by dreman (Acolyte) on Nov 30, 2001 at 22:32 UTC | |
by perrin (Chancellor) on Dec 01, 2001 at 00:21 UTC | |
by kwoff (Friar) on Dec 01, 2001 at 00:08 UTC |