in reply to Re^3: How to read a file containing filenames and pass as input to perl script?
in thread How to read a file containing filenames and pass as input to perl script?
Where do i insert the above line in the code for the prefixing to work?$xmlfile =~ 's/^/XML|/' ;
while (my $xmlfile = <$list>) { $xmlfile =~ 's/^/XML|/' ; chomp $xmlfile; $twig->parsefile($xmlfile); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to read a file containing filenames and pass as input to perl script?
by hippo (Archbishop) on Apr 23, 2018 at 14:47 UTC | |
|
Re^5: How to read a file containing filenames and pass as input to perl script?
by poj (Abbot) on Apr 23, 2018 at 15:20 UTC | |
by Kal87 (Novice) on Apr 23, 2018 at 15:53 UTC |