in reply to Re: Passing a file handle and two arrays to a function by reference.in thread Passing a file handle and two arrays to a function by reference.
... and you will have to dereference the arrays to store stuff in them:
$array1->[$j++] = ... [download]