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

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Advanced:
how to get the link url as scalar


New User

Jul 24, 2010, 12:11 PM

Post #1 of 2 (3976 views)
how to get the link url as scalar Can't Post


I want to extract all the links from a webpage as scalar

here is my actual code

use WWW::Mechanize; 
my $m = WWW::Mechanize->new();
$url = '';

$m->field('sequence', 'EALLKLKRLGSIHLKNKI');
$res = $m->content();

$res has the content of the submitted page and i want to extract the links in the page and want to store it as a scalar is there any way?

thanks in advance

Veteran / Moderator

Jul 24, 2010, 12:46 PM

Post #2 of 2 (3975 views)
Re: [brsaran] how to get the link url as scalar [In reply to] Can't Post

See: HTML::LinkExtor - Extract links from an HTML document


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

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