in reply to XML::XPath and processing multiple files
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML::XPath and processing multiple files
by ATLien (Initiate) on Jul 15, 2013 at 14:47 UTC | |
by Corion (Patriarch) on Jul 15, 2013 at 14:48 UTC | |
by ATLien (Initiate) on Jul 15, 2013 at 14:53 UTC | |
by Corion (Patriarch) on Jul 15, 2013 at 14:57 UTC | |
by poj (Abbot) on Jul 15, 2013 at 15:36 UTC | |
by ATLien (Initiate) on Jul 15, 2013 at 14:50 UTC | |
by Corion (Patriarch) on Jul 15, 2013 at 14:51 UTC | |
by ATLien (Initiate) on Jul 15, 2013 at 14:55 UTC | |
by Anonymous Monk on Jul 15, 2013 at 23:43 UTC |