in reply to Re^2: Reading through a large bunch of files
in thread Reading through a large bunch of files
I tried putting the xml files in a array instead
my @filelist = (-f, <*.xml>); foreach my $file (@filelist) { print "Working on... $file\n"; my $twig = new XML::Twig(TwigRoots => {title => 1, text => 1}); $twig->parsefile($file); open(Output, ">:utf8", "2_$file") or die "can't open file $!\n"; + $twig->root->print(\*Output); close (Output); }
And got the error message "Use of uninitialized value $_[0] in -f at C:/Perl/site/lib/XML/Twig.pm line 752."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Reading through a large bunch of files
by choroba (Cardinal) on Aug 23, 2013 at 15:21 UTC |