It's very hard to twist what the OP has into something that's a problem, so I guess you're just providing trivia. In that case, let me add that any lvalue context will suffice.
>perl -E"@a[4..99] = (); say 0+@a;" 100 >perl -E"for (@a[4..99]) {} say 0+@a;" 100 >perl -E"sub {}->(@a[4..99]); say 0+@a;" 100 >perl -E"grep 1, @a[4..99]; say 0+@a;" 100
In reply to Re^2: Getting range from N..end with list slice
by ikegami
in thread Getting range from N..end with list slice
by Marshall
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |