XML::Twig is object-oriented. first_child is a method which returns a handle to something. To get the value of the child element, you need to use the text method:
print "NAME: " . $install->first_child('name')->text() . "\n";
which prints:
NAME: TEST
There is a nice XML::Twig tutorial at http://www.xmltwig.com/xmltwig/, along with a handy reference page of all the methods.
In reply to Re: One more XML Question
by toolic
in thread One more XMl Question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |