Did you test this with the sub{}-example I provided in order to show context dependency?
Nope. I know it does exactly what you said it does. What it doesn't do is show what jdporter's solution has a problem. That would surely involve using jdporter's solution.
where would preservation of %_ (jdporter mentioned $_) usually be of some importance?
jdporter mentioned *_, not $_.
And localizing %_ would be "of some importance" when %_ is changed, like in the parent of the post to which jdporter replied. The same applies to all global variables.
In reply to Re^6: Remove redundency from an array
by ikegami
in thread Remove redundency from an array
by vc_will_do
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |