foreach $page (@files) { my $xp = XML::XPath->new(filename => $page);
The salient bit here would be how you are generating @files. You say it is a "simple text file", but you don't show the code you use to read it in. Did you perhaps forget to chomp the lines? What's in the "..." in "Cannot open file..." (an important diagnostic message, perhaps)? As Corion suggests, can you guarantee the files in the list are actually valid to begin with?
In reply to Re: XML::XPath and processing multiple files
by rjt
in thread XML::XPath and processing multiple files
by ATLien
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |