in reply to Re: multicolumn files
in thread multicolumn files

the array I used come from tab delimited text files, I tryied your code but I still get the same output as when I used join. thanks

Replies are listed 'Best First'.
Re^3: multicolumn files
by stevieb (Canon) on Jun 06, 2012 at 17:35 UTC

    Ok, I tried it with files. Try changing the for loop I posted to this:

    for my $elem ( @array1 ){ my $arr2_elem = shift @array2; chomp( $elem, $arr2_elem ); push @join, "$elem $arr2_elem"; }