[Bug 200370] lang/perl5.20: Argument "2.49_01" isn't numeric

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed May 27 22:09:55 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200370

--- Comment #9 from Mathieu Arnold <mat at FreeBSD.org> ---
(In reply to parv from comment #8)
> The "X isn't numeric" message is reproducible when apparently-non-number is
> quoted && warnings pragma is in effect ...
> 
>   # perl -Mwarnings -e 'print 3 >= "2.49_01" '
>   Argument "2.49_01" isn't numeric in numeric ge (>=) at -e line 1.
>   1
> 
> 
> It is certainly not surprising to find a program/module version being quoted.

But it's still only a warning, it does not break anything, it's Perl telling
you "you're coding like a moron, but I get what you mean" :

$ perl -Mwarnings -e 'print 3 <=> "2.49_01" '
Argument "2.49_01" isn't numeric in numeric comparison (<=>) at -e line 1.
1
$ perl -Mwarnings -e 'print 2 <=> "2.49_01" '
Argument "2.49_01" isn't numeric in numeric comparison (<=>) at -e line 1.
-1
$

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-perl mailing list