Perl: the Markov chain saw | |
PerlMonks |
Re: crypt sometimes returning undefby johngg (Canon) |
on Feb 14, 2018 at 16:55 UTC ( [id://1209153]=note: print w/replies, xml ) | Need Help?? |
You could save some fiddly typing by using ASCII values with chr in a map to generate your character ranges. I would generate the "salt" for crypt on the fly from the documented allowed characters rather than your mysterious $never_blank_value.
Running this a few times produces
I hope this is helpful. Update: Fixed missing </code> tag. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|