Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Error when using twig_roots in XML::Twig

by hippo (Bishop)
on Nov 26, 2015 at 14:25 UTC ( [id://1148668]=note: print w/replies, xml ) Need Help??


in reply to Updated: How to parse my XML file in the following way using XML::Twig

Odd number of elements in anonymous hash at line 29
twig_roots => { 'Misc' },

There is your anonymous hash with an odd number of elements. It has only one element which is the scalar string 'Misc'. If it is supposed to be a hash it should have key-value pairs instead.

Replies are listed 'Best First'.
Re^2: Error when using twig_roots in XML::Twig
by Ppeoc (Beadle) on Nov 26, 2015 at 15:17 UTC
    Thank you for pointing that out. Very stupid of me! A simple twig_roots => { 'Misc' => 1} fixed it Updated my question. Thanks again :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-23 11:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found