in reply to Re: XML::Twig first_child_matches question
in thread XML::Twig first_child_matches question
I think it's looping over more than necessary??Can't call method "att" on an undefined value at ././././xml_t line 64 +. yes [root@xmen script]#
**UPDATE** I tried descendent and works for me.. thank you!!!for my $para ( $root->children('para') ) { if ( $para->child_matches('get_this') ) { print $para->first_child('get_this')->att('value'); } }
|
|---|