Not Twig but Simple:
use strict; use warnings; use XML::Simple; my $xml = XMLin( 'CC.xml' ); for (@{ $xml->{Week}{Day} }) { print $_->{Times}{Time}{'start-time'},"\n" if $_->{'day-of-week'} eq + "Tuesday"; }
In reply to Re: Extracting XML data from a tree
by hdb
in thread Extracting XML data from a tree
by perlvroom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |