How to extract all link from web page (loaded in variable $content) to scalar @links?

G

Guest

How to extract all link from web page (loaded in variable $content) to
scalar @links?
 
J

Josef Moellers

How to extract all link from web page (loaded in variable $content) to
scalar @links?

Write code to do it, preferably in Perl! Then run it on your computer.
 
V

Vasiliy Litovchenko

How to extract all link from web page (loaded in variable $content) to
scalar @links?

smth. like this?

use HTML::LinkExtor;
my $parser = HTML::LinkExtor->new;
$parser->parse($content);
foreach my $link($parser->links){
print "$link \n";
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top