in reply to Re: Argument "" isn't numeric in numeric le (<=)
in thread Argument "" isn't numeric in numeric le (<=)
No, not undefined. If the \d in /(\d*)/ matched zero times, $1 would be the empty string.
You found the problem (since the OP is having problems with an empty string), it's just the description that's flawed.
>perl -we"my $x = '' < 2" Argument "" isn't numeric in numeric lt (<) at -e line 1. >perl -we"my $x = undef() < 2" Use of uninitialized value in numeric lt (<) at -e line 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Argument "" isn't numeric in numeric le (<=)
by Anonymous Monk on Aug 25, 2009 at 00:27 UTC |