$|++; # turn off output buffering. for each page-I-want-to-get{ print "getting page" get it using LWP:Simple or skip if error print "done" munge the HTML write it out to a file }