My program is supposed to decide whether a number is an integer or not.
I've tried:
if ($variable % 1 = 0)
and:
if ($variable % 1.0 = 0)
I know that it can be done with regular expressions, but I'm only on day three of Sams Perl in 21 Days and I haven't learned them yet.
Is there another way?