#!/usr/bin/perl -w
use strict;
use CGI qw(:standard :cgi-lib);
use LWP::Simple;
my $url ="http://perlmonks.org/index.pl?node_id=110166";
my $html = get $url or die "can't get url $!";
my %names;
#find the names and node ids:
while ($html =~ s/=(\d*?)&lastnode_id=110166">[^<]*<\/A>
by (.*?)<\/A> on \w{3} \d{2}, \d{4} at \d{2}:\d{2}//s) {
$names{$2} = $1 unless $names{$2};
}
# print out a page of links to nodes:
for (sort { lc($a) cmp lc($b) } keys %names) {
print "$_ | ";
}