Erm, you're calling split in scalar context which is documented to muck with @_ and are subsequently surprised when @_ doesn't behave sanely why? The deprecation is because the scalar context behavior is action-at-a-distance, not because it doesn't work.
What you're doing is akin to modifying the array you're iterating over while inside the for loop. Calling split in scalar context works fine just like for works fine, so long as you don't push either into their one weird corner case by either modifying or using the same variable they're working on.
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: messing with @_
by Fletch
in thread messing with @_
by polettix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |