Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Comma delimited file manipulation -- help required.

by Asim (Hermit)
on Jun 21, 2006 at 16:44 UTC ( [id://556721]=note: print w/replies, xml ) Need Help??


in reply to Comma delimited file manipulation -- help required.

I 100% concur with dorward -- this is something that modules like Text::CSV were born to do. The split solution works for simple cases, but once you start trying to deal with text delimiters, quotes within delimiters, and commas within text, you'll be aching for that module.

I'm not 100% certain what you're aiming for, so let me first mention that .csv files should open in Excel with no trouble, in most cases. That kind of auto-convert might save you a lot of trouble, so if all you need to do is open your .csv file in Excel, I recommend that approach strongly.

Otherwise...my understanding, and please correct if I'm wrong, is that you've written a split based conversation already, yes? If it's broken, and you simply cannot install the Text::CSV module, please edit your post here w/the text of the code that's not working, so we can help you properly.

That good for you?

----Asim, known to some as Woodrow.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-03-29 09:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found