in reply to Passing a file handle and two arrays to a function by reference.
sub myfunc { my ($file, $aref1, $aref2) = @_; my @array1 = @{ $aref1 }; [download]