Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Need to use an XML library without dependencies

by aitap (Deacon)
on Dec 12, 2012 at 21:17 UTC ( #1008589=note: print w/ replies, xml ) Need Help??


in reply to Need to use an XML library without dependencies

No, {...} constructs a hash reference (which can be assigned to a scalar value, possibly in another hash or even array), not a hash (which is constructed from a LIST ((...)). See perlreftut and perlref for more information on handling references.

You may want to use XML::Writer if you'd like to write information on the fly, without constructing a data structure first.

Sorry if my advice was wrong.


Comment on Re: Need to use an XML library without dependencies
Select or Download Code
Re^2: Need to use an XML library without dependencies
by envinyater (Initiate) on Dec 12, 2012 at 21:36 UTC
    Can I copy and paste the .pm into my script and have it work?
      I doubt it :) what happens when you try it to see?
      Yes, it's possible, use fatpack for this.
      Sorry if my advice was wrong.
        That worked very well, thank you so much.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2014-07-23 07:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (135 votes), past polls