|Problems? Is your data what you think it is?|
Re: Password (pseudo)casualby Athanasius (Chancellor)
|on Jan 23, 2013 at 15:39 UTC||Need Help??|
Hello cisco88, and welcome to the Monastery!
In addition to the excellent points made by Corion...
It’s always a good idea to:
in any Perl script. For one-liners, you can do:
to get the same benefit. In this case, warnings would have given you messages of the form:
which arise because the expression rand($len) % $len + 3 sometimes generates array indexes beyond the end of the @lett array.
Get in the habit of always using strict and warnings now, and you will save yourself a lot of time and grief in the future!
Hope that helps,