Hi,
I overcame a problem which displays warnings while executing perl program, the situation is
sub compare{
$param=shift;
print "String" if($param eq "5");
}
In the above case the $param may be a string or integer and in case if it is a integer then, we will usually get a warning saying cannot do a string comparison for the integer value .
so can this be avoided ,is there a way to check if $param is integer of string and based on that do a string or integer comparison? Like we do a check for Ref("ARRRAY")?
Regards
CODE tags added by Arunbear