in reply to Re: Changing array by changing $_?
in thread Changing array by changing $_?
If don't plan to modify $_, having an alias instead of a copy means the data doesn't have to be copied, saving memory and speed. This benefits everyone; the only case where extra code is needed is where one modifies $_ without the intention to modify the original array. That code has to do the copy explicitely.
IMO, the right choice has been made.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Changing array by changing $_?
by repellent (Priest) on Oct 13, 2008 at 17:25 UTC | |
|
Re^3: Changing array by changing $_?
by gone2015 (Deacon) on Oct 13, 2008 at 15:20 UTC | |
by JavaFan (Canon) on Oct 13, 2008 at 15:28 UTC | |
by ikegami (Patriarch) on Oct 13, 2008 at 15:38 UTC | |
by JavaFan (Canon) on Oct 13, 2008 at 17:02 UTC | |
by ikegami (Patriarch) on Oct 13, 2008 at 17:17 UTC | |
by gone2015 (Deacon) on Oct 13, 2008 at 17:42 UTC | |
| |
by gone2015 (Deacon) on Oct 13, 2008 at 16:10 UTC | |
by ikegami (Patriarch) on Oct 13, 2008 at 16:23 UTC |