in reply to Re^3: XML::XPath and processing multiple files
in thread XML::XPath and processing multiple files

Yes it does fail with the first duped. It only works when there is one file in the list. Weird I know.
  • Comment on Re^4: XML::XPath and processing multiple files

Replies are listed 'Best First'.
Re^5: XML::XPath and processing multiple files
by Corion (Patriarch) on Jul 15, 2013 at 14:57 UTC

    Now maybe is the time to investigate the difference between the two values.

    Have you printed out their length? Have you compared their values as Perl perceives them?

    ... my $last_page; foreach my $page (@files) { warn "Now opening different page."; warn "Old: [$last_page] New: [$page]"; warn sprintf "Length: Old: %d New: %d", length $last_page, length +$page; warn "They are " . ($last_page ne $page ? "not" : "" ) . " equal"; my $xp = XML::XPath->new(filename => $page); $last_page= $page; ... };