Just a few minor notes:
Would be better as:# default password length $pass_len = 14;
$dflt_pass_len = 14;
Here's a slight update of the random_password subroutine for demonstration:
sub random_password { my ($pass_len) = @_; my @chars_in_pass = character_pool(); my $password=''; for (1..$pass_len) { my $random_number = int rand @chars_in_pass; $password .= $chars_pool[$random_number]; } return $password; }
I don't mean to indicate that your program is bad in any way. Overall, it's an impressive first program.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: Please Review First Program: Random Password Generator
by roboticus
in thread Please Review First Program: Random Password Generator
by hakkum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |