|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re: Need to use an XML library without dependenciesby aitap (Chaplain) |
| on Dec 12, 2012 at 21:17 UTC ( #1008589=note: print w/ replies, xml ) | Need Help?? |
|
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.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||