Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: printing CSV to file?

by Thargor (Scribe)
on May 10, 2005 at 17:10 UTC ( [id://455667]=note: print w/replies, xml ) Need Help??


in reply to Re: printing CSV to file?
in thread printing CSV to file?

$csv->print requires a IO::File or IO::Wrap to open the file to output. The problem I am running into is that there are no \n's at the end of each of my lines of data in my %hashed{key}->(ref'd array) so they all print out on 1 line in a csv file with the last column from the previous key and the first column from the current key squished together. So, now that I think about it is there a way to put a \n at the end of each of my lines of data in an efficient way as this could be handling over 40k lines of data?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-20 04:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found