in reply to Re: issue with print/join 2 arrays
in thread issue with print/join 2 arrays

Hi!, thanks for all replies, but yes.. The arrays I will have to print have more than 1000 rows per 3 columns... Any way to do it then? One other thing.. What if the length of both arrays are different? Thanks!!

Replies are listed 'Best First'.
Re^3: issue with print/join 2 arrays
by Not_a_Number (Prior) on Apr 29, 2014 at 19:02 UTC

    Just adapt the solution I gave in my other post:

    say join ' ', map splice( $_, 0, 3 ), \@array1, \@array2 while @array1 or @array2;

    If you need to access your original arrays later, make copies and destroy these instead.