in reply to Matching alphanumeric characters from urandom

You're having problems with what exactly character classes mean. Check out perldoc perlretut and perldoc perlre, but just as a hint you probably wanted m/[[:alpha:]]/.