sub passingArray { my ( $aref1, $aref2 ) = @_; print "Number of elements tmp: $#$aref1\n"; print "tmp1 @tmp\n"; print "Number of elements newtmp: $#$aref2\n"; print "tmp1 @$aref2\n"; }
In reply to Re: passing whole array to a function
by borisz
in thread passing whole array to a function
by han_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |