good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Changing local variables in subroutine by passing by reference?by almut (Canon) |
on Feb 29, 2008 at 10:23 UTC ( [id://671138]=note: print w/replies, xml ) | Need Help?? |
You have a precedence problem in your dereferencing ($$_[2] and @$_[1]), i.e. you need additional braces. And, as moritz said, you need to dereference in the assignment, too. IOW, this should work:
In Section
Seekers of Perl Wisdom
|
|