Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Appending new column data to CSV file?

by moritz (Cardinal)
on Aug 04, 2013 at 16:44 UTC ( #1047805=note: print w/ replies, xml ) Need Help??


in reply to Appending new column data to CSV file?

Here is a pointer: Instead of printing the data, store it in a data structure that is declared outside the outer foreach loop. Then when you are done with all input files, write the output into a single file.

If you haven't yet worked with nested data structures in Perl, I can recommend perlreftut, perldsc and perllol (the latter for arrays of arays).


Comment on Re: Appending new column data to CSV file?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2016-02-13 09:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (423 votes), past polls