in reply to Re: passing variables between subroutines
in thread passing variables between subroutines
my @test = (1,2); my @test2 = (3,4); foo(\@test,\@test2); sub foo { my ($array,$array2) = @_; print $_ ."\n" for(@{$array}); print $_ ."\n" for(@{$array2}); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: passing variables between subroutines
by revdiablo (Prior) on Jan 16, 2006 at 18:57 UTC | |
by Grygonos (Chaplain) on Jan 17, 2006 at 19:14 UTC | |
|
Re^3: passing variables between subroutines
by blazar (Canon) on Jan 17, 2006 at 10:45 UTC |