Hello all,

I currently currently passing a subroutine one scalar value and two arrays.
Both array's work before and after the function call.  However only one of
hte arrays works within the subroutine.

example code:

print @array1;  //this works
print @array2;  //this works
subroutine($a, @array1, @array2);


sub subroutine($a, @array1, @array2)
{
print @array1; //this works
print @array2;  //this does not work
}

It is always the same array that is not being passed.  Even if I switch
@array1 and @array2 I still will only get one useable array within the
subroutine.

Thanks for the help

Shaun

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to