journey has asked for the wisdom of the Perl Monks concerning the following question:
The messages I get are:use strict; use warnings; use HTML::SimpleLinkExtor; my $file; my $FileOut = "output.txt"; open FileDOut, ">$FileOut" or die "Can't open output file $FileOut: $! +"; print "Summary written in file $FileOut\n"; opendir(DIR, "."); my @files = readdir(DIR); closedir(DIR); foreach $file (@files) { if ($file =~ /^(.*)htm/i){ print FileDOut "$file\n"; open my ($fh),"<",$file or die "Couldnot do it: $!"; my $extor = HTML::SimpleLinkExtor->new(); $extor->parse_file(<$fh>); print FileDOut "$_\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Extracting URL from HTML - but unfamiliar with OO module syntax
by citromatik (Curate) on Jan 30, 2009 at 09:37 UTC | |
|
Re: Extracting URL from HTML - but unfamiliar with OO module syntax
by libvenus (Sexton) on Jan 30, 2009 at 09:15 UTC | |
|
Re: Extracting URL from HTML - but unfamiliar with OO module syntax
by gone2015 (Deacon) on Jan 30, 2009 at 10:13 UTC |