There's more than one way to do things | |
PerlMonks |
Re: Taking Input And Running In Scriptby simeon2000 (Monk) |
on Jul 31, 2002 at 18:54 UTC ( [id://186560]=note: print w/replies, xml ) | Need Help?? |
If you're in unix, and you don't want your PASSWORD to appear on the command line, you can set it in environment variables like so: $ USERNAME=jim PASSWORD=spekkio perl script.pl Then the code could: print $ENV{USERNAME}, $ENV{PASSWORD} However, this approach also has some pitfalls, and you must be VERY careful with it... but at least it's better than having your password in the process table :P --
In Section
Seekers of Perl Wisdom
|
|