Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: XML::Simple XML / XMLin / XMLout? or something else?

by brap (Pilgrim)
on Oct 12, 2012 at 14:59 UTC ( #998716=note: print w/ replies, xml ) Need Help??


in reply to Re^3: XML::Simple XML / XMLin / XMLout? or something else?
in thread XML::Simple XML / XMLin / XMLout? or something else?

Hey McA,

One possibility (that I've run into myself) is $corporate mandates that say that data can't be edited by hand, and that you have to write a program (to be executed only by those with sufficient authority) to modify said data.

Of course, another possibility is that this is more than a one-time thing -- maybe these book list files show up daily.

A warning about your one-liner (cool though it is), XML documents don't necessarily have to have newlines between elements. I've encountered some with no newlines at all -- I believe your solution would empty the file in that case.

Just some random thoughts...

Update: And BrowserUk phrases it better than I :)


Comment on Re^4: XML::Simple XML / XMLin / XMLout? or something else?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (17)
As of 2015-07-07 17:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls