in reply to Re^2: De-Reference an array
in thread De-Reference an array

Change
system("print.pl",$ref_array1,$ref_array2);
to
print "Array 1: $ref_array1\nArray 2: $ref_array2\n";
And run, you'll see what you're passing to the second script.

A suggested you'll have to provide the contents of the arrays rather than references to the second script.

Replies are listed 'Best First'.
Re^4: De-Reference an array
by Ankit.11nov (Acolyte) on Oct 12, 2009 at 06:32 UTC
    If I am providing contents of the array then it will not be possible to extract the info in the 2nd script.
    (@ref_arr1,@ref_arr2)=@ARGV;
    @ref_arr2 will always be empty if arrays are not passed by reference. Please correct me if I am wrong
      You are not wrong. You could provide the two arrays with a separator or as 2 quoted strings which you then split into arrays.