http://qs321.pair.com?node_id=163258


in reply to Re: Shift versus Sanity (shift is not like assignment from @_)
in thread Shift versus Sanity

If you want to modify it you must fetch the parameter

I don't know if you include this in "fetch". Technically you might fetch, but I wouldn't like to call it fetching the parameter(s).

sub foobar { @_ = @_; $_[0] =~ s/foo/bar/; $_[0]; }
Cheers,
-Anomo