http://www.perlmonks.org?node_id=1014922

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.

-- Luca Francesca
<luca.francesca@ciscoland.eu>
SysAdmin/Integrator
@
Vodafone Italy & Ntt Data