Thank you for the suggestions. I have a question however. In terms of executing random_password() without a command-line argument in it, I assume you mean to rather call it with the hash key, as in: print random_password($cli_options{l}) . "\n";. Is that correct? And if so, as opposed to using my ($pass_len) = @_; to store it, shouldn't I rather do my $pass_len = shift;? Or am I missing something?
toolic also pointed out declaring my variables at initial use as well as explicitly using return; I thank you both for the pointers. As a side note, I am quite glad I found PerlMonks. Everyone here seems quite friendly and helpful...the perfect environment for me to grow up in.
-- hakkum
In reply to Re^2: Please Review First Program: Random Password Generator
by hakkum
in thread Please Review First Program: Random Password Generator
by hakkum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |