Problems? Is your data what you think it is? | |
PerlMonks |
Re: compare always true in grepby crashtest (Curate) |
on Oct 24, 2014 at 18:52 UTC ( [id://1104901]=note: print w/replies, xml ) | Need Help?? |
My 5.18.2 on Linux dies the same way. B::Deparse shows this interpretation of your if statement: Note the parentheses. That is, you have a scalar comma expression with the grep and the @times array, which evaluates to @times. The grep is evaluating the expression 0 + $_ >= 9999999 on an empty list, but that's irrelevant. Adding the parentheses properly works:
In Section
Seekers of Perl Wisdom
|
|