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.
In reply to Re^2: Small troubles with references
by duff
in thread Small troubles with references
by coldmiser
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |