cisco88 has asked for the wisdom of the Perl Monks concerning the following question:
Hi all,
I wrote this simple code to create a password.
perl -e '@lett = (a..z); $len = "$#lett"; foreach (1..20) {print $lett[rand($len) % $len + 3 ];} print "\n";'
Given that I only read half chapter 1 of "Programming in Perl" and maybe more complex solutions aren't yet in my grasp.. how you'd do it?
Thanks and have a good day.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Password (pseudo)casual
by Corion (Patriarch) on Jan 23, 2013 at 15:19 UTC | |
by cisco88 (Beadle) on Jan 23, 2013 at 15:24 UTC | |
|
Re: Password (pseudo)casual
by Athanasius (Archbishop) on Jan 23, 2013 at 15:39 UTC | |
by cisco88 (Beadle) on Jan 23, 2013 at 15:43 UTC | |
|
Re: Password (pseudo)casual
by davido (Cardinal) on Jan 23, 2013 at 18:04 UTC | |
by cisco88 (Beadle) on Jan 23, 2013 at 21:19 UTC | |
|
Re: Password (pseudo)casual
by karlgoethebier (Abbot) on Jan 24, 2013 at 19:29 UTC |