Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: multicolumn files

by Anto_ch (Initiate)
on Jun 06, 2012 at 17:17 UTC ( #974786=note: print w/ replies, xml ) Need Help??


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


Comment on Re^2: multicolumn files
Re^3: multicolumn files
by stevieb (Hermit) 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"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://974786]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (20)
As of 2014-07-28 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (207 votes), past polls