use strict;
use warnings;
use HTML::SimpleLinkExtor;
my $FileOut = "output.txt";
open FileDOut, ">$FileOut" or die "Can't open output file $FileOut: $!";
print "Summary written in file $FileOut\n";
while (my $file = glob ("*.html")){
print FileDOut "$file\n";
my $extor = HTML::SimpleLinkExtor->new();
$extor->parse_file($file);
my @links = $extor->links();
print FileDOut "$_\n" for (@links);
print FileDOut "\n";
}
close FileDOut;