According to perlsub inside a subroutine the elements of @_ are aliased to the items in the list that are passed to the subroutine. Passing by reference means you pass one or more references in the arguments to the subroutine. Then elements of @_ are aliased to the references and you can make local copies inside the subroutine.
In reply to Re^2: How come @_ gets changed here?
by Lotus1
in thread How come @_ gets changed here?
by pritesh_ugrankar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |