in reply to Re: Changing local variables in subroutine by passing by reference?
in thread Changing local variables in subroutine by passing by reference?
Thanks, I think that's working now :)
However, I don't think I understand the difference between "# another way, since @_ is an alias:" and what I was doing.. Is it because by assigning a reference to $_[0] (say) $_[0] would then be a reference to a reference? And if so, would my code have worked if I'd added an extra dereferencer (e.g. $$$_[0] instead of $$_[0]), or is that just nonsense?!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Changing local variables in subroutine by passing by reference?
by ikegami (Patriarch) on Feb 29, 2008 at 11:12 UTC | |
|
Re^3: Changing local variables in subroutine by passing by reference?
by moritz (Cardinal) on Feb 29, 2008 at 10:49 UTC |