in reply to Passing a file handle and two arrays to a function by reference.

You are passing references to your arrays, thus your sub should be using $array1 and $array2.

Neil Watson
watson-wilson.ca

  • Comment on Re: Passing a file handle and two arrays to a function by reference.

Replies are listed 'Best First'.
Re^2: Passing a file handle and two arrays to a function by reference.
by Anonymous Monk on May 26, 2015 at 13:37 UTC

    ... and you will have to dereference the arrays to store stuff in them:

    $array1->[$j++] = ...