in reply to arrays passed into subroutines
You can pass the arrays as array references e.g. \@array.
In the subroutine you then need to dereference them, say,
The perlreftut is a good place to delve deeper into refs.my $array_ref = shift; my @array = @{$array_ref};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: arrays passed into subroutines
by amadain (Novice) on Nov 10, 2004 at 09:15 UTC |