in reply to Re: my 'if' condition doesn't work, why?
in thread my 'if' condition doesn't work, why?
and so should be faster for very large lists.use List::Util qw(first); for my $n (0 .. 267) { print "$n\n" if first {$n == $_} 40, 47, 76; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: my 'if' condition doesn't work, why?
by AnomalousMonk (Archbishop) on Nov 12, 2014 at 12:10 UTC | |
|
Re^3: my 'if' condition doesn't work, why?
by GrandFather (Saint) on Nov 12, 2014 at 08:03 UTC |