@a= (1, 2, 3); &test(@a); sub test {my (@b)= @_; pirnt "@b"; }
If you want to pass more than one array you can make use of reference. see perlref
Prasad
In reply to Re: passing arrays to subroutines
by prasadbabu
in thread passing arrays to subroutines
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |