Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: arrange output in columns

by kennethk (Monsignor)
on Jun 17, 2013 at 17:34 UTC ( #1039420=note: print w/ replies, xml ) Need Help??


in reply to arrange output in columns

If you need to output a CSV file, I'd suggest using a module that writes CSV files, such as Text::CSV. As your data grows in complexity, this will scale easily without gotchas.

Please note that the number of files can be in 100's , so i cant simply use join function.
I don't follow why you can't populate an array (1 read per file) and then join the results and write them for your simple case. I'd think opening and reading from 100's of files simultaneously would represent a more significant technical challenge.

So what have you tried? What failed? We're happy to help debug, but we're not a code writing service.


#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.


Comment on Re: arrange output in columns

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-08-28 01:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (254 votes), past polls