in reply to Re: Extracting XML data from a tree
in thread Extracting XML data from a tree

One small correction: change day_of_week to day-of-week:
foreach my $node ($twig->get_xpath('//Day[@day-of-week="' . $looking_f +or_day . '"]/Times/Time')) {

Replies are listed 'Best First'.
Re^3: Extracting XML data from a tree
by Neighbour (Friar) on Jun 04, 2013 at 14:50 UTC
    Whoops, yes...I had a bit of trial and error getting it to work, and changed the -'s to _'s, but forgot to change them back when posting the code.
    Thanks for the correction.