What I do not know how to do is check if the output is an integer a float or a string Any help greatly appreciated as I am new to perl and porogrammingif ($var == integer) { print "$a is an integer.\n"; } elsif ($var == float) { print "$a is a float.\n"; } else { print "$a is neither an integer or float.\n"; }
In reply to comparing output to check if is an integer or float by zerodata
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |