Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: XML::CSV out of memory

by sundialsvc4 (Abbot)
on Mar 27, 2015 at 16:49 UTC ( [id://1121528]=note: print w/replies, xml ) Need Help??


in reply to XML::CSV out of memory

You could be running into a memory-problem in any one of three places:

  1. The CSV import.
  2. The XML translation.
  3. An unknown bug in a module that hasn’t been attended-to in a long time.
  4. In this case, I think I would just resort to my own logic ... using CPAN modules to do all the heavy-lifting but not to perform the entire task.   For instance, use a CSV module to read the file line-by-line.   Now, build an in-memory hash structure conforming to the XML structure you want to build.   (Pause and verify that everything works so-far ...)   Then, use an XML module to write it out.

With the amount of RAM that you say you have, the only really-plausible explanation for what you are seeing is ... a bug.   Somewhere.   And, in this case, I would just drive around it.   The obvious path to “get ’er done” is plain, and does not obligate the use of a module that might in fact be buggy.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2024-03-28 10:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found