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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: XML::Twig help
by mirod (Canon) on Jul 03, 2012 at 13:43 UTC | |
by yesitsjess (Initiate) on Jul 05, 2012 at 10:36 UTC | |
Re^3: XML::Twig help
by Anonymous Monk on Jul 03, 2012 at 13:01 UTC |
In Section
Seekers of Perl Wisdom