@a = (1,2,3,4); @b=(11,22,33,44); &d(@a, @b); sub d{ (@c, @d) = @_; print @c; print "---"; print @d; }
How to get @a into @c and @d into @d without passing references
In reply to How to get two array in subroutine by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |