Thank you Steve.
Looking at it like that, I guess the array option might be the only sensible way of doing it.
I'm not happy about the update-in-place system here either. It is however backed up regularly. Do you reckon a separate file for each XML entry would be better then?
Thanks Steve,
This is indeed a one off project, so any filthy hard-coded perl would be fine. The downside is that the XML file has the potential to be of non-negligible size (~25MB) and so I wasn't keen on the Reading and Writing method (I apologize that I forgot to write that into my original...
Does anyone know how to append to an XML file while still enclosing it in a <master tag>?
<entries>
<entry1 />
<entry2 />
</entries>
becomes
<entries>
<entry1 />
<entry2 />
<entry3 />
</entries>
Because it is safe-perl, I cannot include modules. I would know the exact length of the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.