One way to tell if it's an integer would be:
print "Integer!" if $VAR =~ /^\d+$/;.
In reply to Re: Integer Type Checking by simeon2000 in thread Integer Type Checking by HiFoo