Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: removing \n with for each

by davido (Archbishop)
on Jun 13, 2013 at 15:38 UTC ( #1038777=note: print w/replies, xml ) Need Help??

in reply to removing \n with for each

I have written this code to extract columns from a csv file ,

Arrgghhhhhh! Noooooooooo! Text::CSV

(Whew, that feels better.)

Unless your goal is to learn how to write a CSV parser, don't write code to parse CSV files; it's been done (correctly) on CPAN.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1038777]
[SuicideJunkie]: So, possibly interesting thing; I had that script which was using more than all the ram to open an absurdly large spreadsheet. I set it up to spin overnight nightly, so it stopped releasing memory since it was never fully exited.
[SuicideJunkie]: Didn't expect that to be a problem. There's plenty of disk space for swap, and the memory space would be reused the next day. But apparently virtualbox dies with a guru meditation when there's no physical memory unused on start.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (1)
As of 2017-04-26 22:48 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (491 votes). Check out past polls.