whereas the latter returns '' (the empty string) for FALSE.
It does not.
$ perl -MScalar::Util=looks_like_number -we' CORE::say 0+""; ' Argument "" isn't numeric in addition (+) at -e line 2. 0 $ perl -MScalar::Util=looks_like_number -we' CORE::say 0+looks_like_number("abc"); ' 0
It returns the usual empty string, 0, 0.0 triple-var Perl uses for false (sv_no).
In reply to Re^4: How to capture the "isn't numeric" warning?
by ikegami
in thread How to capture the "isn't numeric" warning?
by harangzsolt33
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |