in reply to Re: Why does assignment change the result?
in thread Why does assignment change the result?

Additionally @_ is special, assigning to it alters the original variables passed in.

No, it doesn't. Assignment to elements of @_ will change those variables; assignment to @_ replaces its contents entirely. Isn't Perl wonderful? :-)

Update: IOW, what suaveant said.

  • Comment on Re^2: Why does assignment change the result?