In any BLOCK LIST, the thing in the BLOCK needs to be a condition that tests against $_, which is set to each item of the LIST, @line_numbers, until a match is found. Change it to {$_==$li}, I am guessing that's the result you're looking for?
In reply to Re: Problem in "any"
by Anonymous Monk
in thread Problem in "any"
by ravi45722
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |