http://qs321.pair.com?node_id=19664


in reply to Minor querry!!

You probably want something like:
if($a =~ /\D/) { # Not a number }
The /D matches non-digits, so this will be true if $a contains any non-digits.