thenewguy111
MIS
Hi All,
I'm actually embarassed to ask this.
I would like to know how can I know if the var is
an integer or a float
my $a = 1234;
my $b = 0.1
I would like something like this :
if ($a is an integer)
{
# code
}
elsif ($b is a float)
{
# code
}
else
{
# code
}
All help is appreciated.
Thanks a hole bunch !
I'm actually embarassed to ask this.
I would like to know how can I know if the var is
an integer or a float
my $a = 1234;
my $b = 0.1
I would like something like this :
if ($a is an integer)
{
# code
}
elsif ($b is a float)
{
# code
}
else
{
# code
}
All help is appreciated.
Thanks a hole bunch !