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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Need to use an XML library without dependencies
by envinyater (Initiate) on Dec 12, 2012 at 21:36 UTC | |
by aitap (Curate) on Dec 12, 2012 at 21:49 UTC | |
by envinyater (Initiate) on Dec 13, 2012 at 20:57 UTC | |
by Anonymous Monk on Dec 12, 2012 at 21:45 UTC |