in reply to Re: Pass By Reference Inner Workings - Magic scalar operator
in thread Pass By Reference Inner Workings - Magic scalar operator
I'll actually be copying all of the hash entries into a local variable... So if the hash passed into the subroutine is very large, it could be a performance hit? The paradigm I usually use is to shift into a scalar and then use dereference operator to access elements. This may be why... unless you have really good reasons to do it, should one stay away from the paradigm in the code segment above???sub mysub { my %x = %{+shift}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Pass By Reference Inner Workings - Magic scalar operator
by davido (Cardinal) on May 01, 2005 at 08:45 UTC |