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