#!/usr/bin/perl # usage: $0 <#PAGES> use strict; use warnings; use LWP::Simple; my $artist = shift || "Moby"; my $pages = shift || 1; # increase if artist is listed with more than 1 page for my $pageno ( 0 .. $pages ) { my $page = get( qq(http://riaaradar.com/search.asp?keyword=$artist&page=$pageno) ); my %record; for my $line ( split /\n/, $page ) { if ( $line =~ m{