in reply to How to get two array in subroutine
(@listc, @listd) = simplesort(\@lista, \@listb); sub simplesort { my ($listaref, $listbref ) = @_; # De-reference the array list my (@lista) = @$listaref; my (@listb) = @$listbref; # Now you can play with both arrays. }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to get two array in subroutine
by Anonymous Monk on Feb 09, 2011 at 13:26 UTC | |
by Anonymous Monk on Feb 09, 2011 at 13:33 UTC | |
by Anonymous Monk on Feb 09, 2011 at 13:34 UTC |