There is a well-known problem with ordinary ways of using Perl subroutine arguments |
If one has a argument list such as |
(@list1, @list2, .... ), then the subroutine sees a single list (array), which is the concatenation of the component lists |
This can be avoided using hard references with the \ operator. For example: |
@tailings = popmany( \@a, \@b, \@c, \@d ); |
See next foil for code of popmany |