http://www.perlmonks.org?node_id=979682


in reply to Re: XML::Twig help
in thread XML::Twig help

Okay, it didn't even slightly work though. Also I changed the data to make it easier for you guys to help.

foreach my $info ($root->children('data')){ my $INTEREST2 = $drug->first_child_text('groups/group'); print "$INTEREST2"; print "\n"; }

I have no idea how to capture INTEREST1 as it is within the tag. What I've written here didn't work as groups/group is not valid.