Scalar::Util's looks_line_number() routine checks the Perl API Looks Like Number field in the scalar.
In some cases your variable might have a string which is a valid number, but doesn't have that field set.
In reply to Re^2: number regex (incl sci notation)
by rrwo
in thread number regex (incl sci notation)
by jim_neophyte
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |