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; }
In reply to Re^2: my 'if' condition doesn't work, why?
by eyepopslikeamosquito
in thread my 'if' condition doesn't work, why?
by perltux
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |