in reply to Extracting URL from HTML - but unfamiliar with OO module syntax

Here are some comments to your code:

Here is a version of your code with all these issues corrected (untested):

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;

citromatik