Have a look at
GetOpt for command line switches. Also, a search in the search box (top -left) with "Password + Variable" should help you on your way...
Azatoth a.k.a Captain Whiplash
Make Your Die Messages Full of Wisdom!
Get YOUR PerlMonks Stagename here!
Want to speak like a Londoner?