Michael G Schwern wrote: > > On Wed, Apr 11, 2001 at 10:07:28AM -0300, Filipe Brandenburger wrote: > > This probably was requested before, but I'd > > like to see the shortest cmdline to generate > > a password of 8 random alphanumeric characters. > > Assuming we're not worrying about little things like warnings... > > perl -le'print map{(A..Z,a..z,0..9)[rand 62]}1..8' > > What is that, 50? i think this is still the shortest solution that matches the original requirements. a par: perl -le'$_.=chr rand 123until/[^\W_]{8}/;print$&' and a bogey: perl -le's//chr rand 123/euntil/[^\W_]{8}/;print$&' -- Steve Lane <sml@zfx.com> ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe