![]() |
|
No such thing as a small change | |
PerlMonks |
Re: Integer Type Checkingby simeon2000 (Monk) |
on Jul 19, 2002 at 17:26 UTC ( #183325=note: print w/replies, xml ) | Need Help?? |
Perl doesn't differentiate, AFAIK, between strings and integers as far as the programmer is concerned. One way to tell if it's an integer would be: print "Integer!" if $VAR =~ /^\d+$/;.
In Section
Seekers of Perl Wisdom
|
|