CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [camelman] HTML::Parser: Edit Log



KevinR
Veteran


Sep 5, 2003, 11:35 PM


Views: 10477
Re: [camelman] HTML::Parser

maybe the error in the example code you posted was just a typo when you posted it, but it contains an error that will crash the script:


Code
#! C:/perl/ -w 
@infile=<files.txt>
foreach $infile (@infile) {
my $outfile = "C:/parsed/data4/$infile";
system "perl parse.pl C:/output/data4/$infile > $outfile";
}



should be:


Code
#! C:/perl/ -w 
@infile=<files.txt>;
foreach $infile (@infile) {
my $outfile = "C:/parsed/data4/$infile";
system "perl parse.pl C:/output/data4/$infile > $outfile";
}

note the semi-colon at the end of the second line. That should get rid of the error message.Wink
-------------------------------------------------


(This post was edited by KevinR on Sep 5, 2003, 11:37 PM)


Edit Log:
Post edited by KevinR (Veteran) on Sep 5, 2003, 11:36 PM
Post edited by KevinR (Veteran) on Sep 5, 2003, 11:37 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives