in reply to Re: Small troubles with references
in thread Small troubles with references
The difference is that passing an array to a subroutine passes a copy of that array
Not true at all. @_ is aliased to all of the elements of the list passed to the subroutine. There is no copying going on unless you, the programmer, do it.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Small troubles with references
by demerphq (Chancellor) on Feb 09, 2006 at 20:33 UTC | |
by ptum (Priest) on Feb 09, 2006 at 23:08 UTC | |
by demerphq (Chancellor) on Feb 09, 2006 at 23:17 UTC | |
by runrig (Abbot) on Feb 09, 2006 at 23:15 UTC |