Trying to match to a regexp /^\d$ is not enough when dealing with fractions (because of th period).my $foo = 'xxx'; if ($foo < 4.556) { # will throw the warning # do something }
In reply to numeric comparison by hotshot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |