Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Handling an embedded newline in an unquoted CSV field

by Tux (Canon)
on Dec 10, 2011 at 10:30 UTC ( [id://942784]=note: print w/replies, xml ) Need Help??


in reply to Handling an embedded newline in an unquoted CSV field

Not that I am aware off. You're trapped.

If you know in advance how many fields each line should have, you could create your own parser based on this example.


Enjoy, Have FUN! H.Merijn
  • Comment on Re: Handling an embedded newline in an unquoted CSV field

Replies are listed 'Best First'.
Re^2: Handling an embedded newline in an unquoted CSV field
by 3dbc (Monk) on Dec 10, 2011 at 14:27 UTC
    DBD::CSV has always worked best for me with CSVs and lets me suck it all into an HoH, but not sure it would work with a file like the one you're describing, albeit what you're describing doesn't sound like a CSV in the conventional sense...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (8)
As of 2024-04-18 16:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found