Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Data Dumper not outputting valid perl?

by thraxil (Prior)
on Apr 28, 2003 at 15:06 UTC ( [id://253717]=note: print w/replies, xml ) Need Help??


in reply to Data Dumper not outputting valid perl?

are you sure Data::Dumper is producing that broken code, or perhaps is it producing correct code and it's getting screwed up when you put it into the database. are you using placeholders for your DBI inserts or do you have some custom quoting routine which may somehow be deleting the quotes in the name of "security"?

ie, does your SQL look like:

INSERT INTO foo_table (stuff) values (?)

or,

INSERT INTO foo_table (stuff) values ($string)

if it's the latter, i have a strong suspician that that is related to your problem.

posting the code which generates that string and then inserts it into the database would help us diagnose things.

anders pearson

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-19 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found