in reply to Re: Saving data to XML file using DBD::AnyData
in thread Saving data to XML file using DBD::AnyData

In the "actual" web program that this snippet came from uses the strict and warning, but I left it out do to "laziness" and I knew it wasn't the problem here.

The data for the new record would be gotten from a web form, I provided for ease of testing only. In my version I can insert the record, but the creation of the XML file is what I need help with. This is my problem, not the SQL part.

Looking at the code you provided (and testing it), it doesn't save the "newly" inserted record to the XML file. How is this done using AnyData modules? What am I doing wrong?

  • Comment on Re^2: Saving data to XML file using DBD::AnyData

Replies are listed 'Best First'.
Re^3: Saving data to XML file using DBD::AnyData
by stefbv (Priest) on Dec 04, 2009 at 19:21 UTC

    In my code there is no ad_export statement and if I add one I get the same error messages. I see now that I didn't understand what was the real problem, sorry, in this case, probably snoopy was right about what is happening.

    Anyhow the DBD-AnyData module has 8 active bugs and the last is 2 years old, I'm not sure it's ready for production.

    Best regards, Stefan

      Seeing that I couldn't get the export to work and checking when the author was going to fix the bug based on snoopy's bug report to the author which will not be until version 2.0 (whenever that will be), I decided to use XML-Simple to create the XML based on the selection on the memory table. I will create a routine and use it in the places that I was going to export.

      With PERL, there's always a way...

      Thanks for every ones help.