use Regexp::Common; # get your $data ... if ($data ~= /$RE{num}{int}/){ print "It's an integer\n"; } [download]
In reply to Re: perl typecasting by jrtayloriv in thread perl typecasting by perl_junkie