If the file list was created under Windows and you working on Unix/Linux/Cygwin, chomp will not be enough. Try this:
or possibly:foreach $page (@files) { chomp $page; $page =~ s/\r//g; # ... }
<c>foreach $page (@files) { $page =~ s/[\r\n]//g; # ... }
In reply to Re: XML::XPath and processing multiple files
by Laurent_R
in thread XML::XPath and processing multiple files
by ATLien
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |