in reply to Passing references out of subroutines
($r_array1, $r_array2) = foo(); print "@$r_array1\n"; print "@$r_array2\n"; sub foo { my @array1 = (1..5); my @array2 = (6..10); return (\@array1, \@array2); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Passing references out of subroutines
by nysus (Parson) on May 22, 2001 at 21:08 UTC |