Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Parsing mysqldump files

by 7stud (Deacon)
on Feb 25, 2013 at 03:47 UTC ( #1020451=note: print w/replies, xml ) Need Help??


in reply to Parsing mysqldump files

I also would be interested in a slick way of slurping this in without having to use some generic heavy-duty perl parser module.

Slurp::MindReader might be a good choice.

Numerical entries can be written as-is, while string entries are enclosed in single quotes. Single quotes within a string can be escaped with a backslash. Commas and parenthesis are treated as string characters when within a quoted string...Has anyone (parsed similar formats) before?

The format is called CSV. See Text::CSV_XS.

Replies are listed 'Best First'.
Re^2: Parsing mysqldump files
by Anonymous Monk on Feb 25, 2013 at 04:27 UTC
    ENOGOODATHUMOR

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1020451]
help
Chatterbox?
[ambrus]: I don't much like highlighting matching parenthesis, because I've had some bad experiences with distracting implementations of that.

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2017-02-27 13:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (385 votes). Check out past polls.