in reply to Re: passing arrays to subroutines
in thread passing arrays to subroutines
my $a=@_[0];
Unpacking @_ with explicit subscripts is inefficient and unsightly. Using an array slice in a scalar context is also messy.
ormy ($a)=@_;
my $a=shift;
|
---|
In Section
Seekers of Perl Wisdom