Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > How to extract all link from web page (loaded in variable $content) to scalar @links?

Reply
Thread Tools

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

 
 
Guest
Posts: n/a
 
      09-11-2006
How to extract all link from web page (loaded in variable $content) to
scalar @links?


 
Reply With Quote
 
 
 
 
Josef Moellers
Guest
Posts: n/a
 
      09-11-2006
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> 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.

--
Josef Möllers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize
-- T. Pratchett

 
Reply With Quote
 
 
 
 
Vasiliy Litovchenko
Guest
Posts: n/a
 
      09-11-2006
(E-Mail Removed) wrote:
> 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";
}
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
I need to extract an array from a scalar regex-wise ? advice please wireless 802.11 on RH8 Perl Misc 11 05-12-2008 04:55 PM
Dear gurus how can I extract an ARRAY from a scalar regex-wise advice please wireless 802.11 on RH8 Perl Misc 5 05-10-2008 03:37 AM
Replace scalar in another scalar Mark Perl Misc 4 01-27-2005 02:48 PM
Shorthand for($scalar) loops and resetting pos($scalar) Clint Olsen Perl Misc 6 11-13-2003 12:50 AM



Advertisments