in reply to POSIX-Style character classes
print "42" =~ /^[[:digit:]]+$/ ? "42 is a digit" : "42 is not a digit" +; [download]