George_Sherston has asked for the wisdom of the Perl Monks concerning the following question:
Many thanks - it's lovely to be back in the hallowed halls.#!/usr/bin/perl -w use strict; use lib '/home/httpd/lib'; use CGI qw/:standard :cgi-lib/; use LWP::Simple; my $text = get 'http://www.perlmonks.net/index.pl?node_id=110166'; my %names = (George_Sherston => 110166); while ($text =~ s#<a HREF="/index\.pl\?node_id=(\d+)">.+?</a><BR> by < +a HREF="/index\.pl\?node_id=(\d+)">(.+?)</a> on \w{3} \d{1,2}, \d{4} +at# #) { unless (defined $names{$3}) { $names{$3} = $1; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP::Simple? Prototype mismatch?
by Arunbear (Prior) on May 16, 2005 at 13:30 UTC | |
by Fletch (Bishop) on May 16, 2005 at 13:47 UTC | |
by George_Sherston (Vicar) on May 16, 2005 at 13:53 UTC | |
|
Re: LWP::Simple? Prototype mismatch?
by jeffa (Bishop) on May 16, 2005 at 13:34 UTC |