Is it possible to determine if a scalar variable is an integer or a string?
In a shell script I am porting:
expr $VAR + 1; if [ $? -ne 0 ]; then do stuff... fi
was used to check to see if the value of the variable was an integer.
Is there a similar way to do this in Perl?
Thanks
In reply to Integer Type Checking by HiFoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |