shift defaults to shift the first value off @_ if you don't supply an array argument.my ($aref) = @_; #or do my $aref = $_[0]; #or my $aref = shift;
- Ant
In reply to Re: Re: Re: Passing an array to a subroutine
by suaveant
in thread Passing an array to a subroutine
by gisrob
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |