in reply to Re^4: How come @_ gets changed here?
in thread How come @_ gets changed here?

> So what's the take-away here? If your sub has to put stuff in variables outside its own scope, don't also pass those variables as parameters?

It's even more complicated.

You could call another sub (which calls another sub) which is deleting elements from the closure before accessing @_.

I think the rule of thumb is

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!