http://qs321.pair.com?node_id=257101

Your Mother has asked for the wisdom of the Perl Monks concerning the following question:

sub random_password { my $length = 8 + int(rand(5)); my @alpha = ( 1 .. 9, 'a' .. 'z', 'A' .. 'Z', qw( ! @ $ % & * + - . , ) ); return join('', map { $alpha[rand(@alpha)] } ( 1 .. $length )); }

Other ideas or takes? I poked around the Super Search a bit but nothing jumped out at me. This seems awfully simple to resort to importing an entire module. Or is it? In this case it would be for temporaries issued to users via email till they redo their own and it would expire in, say, 10 minutes.