#!/bin/perl -w use URI; use LWP; use HTTP::Cookies; use Switch; chdir '/home/medlir/download/shared/rlc'; my $num = $ARGV[0]; my $url = ''; my $httpRes = ''; my @html = (); my $year = 1999; my $month = 'November'; my $monthnum = 11; my $day = 15; my $imgurl = ''; print "\n"; my $ua = LWP::UserAgent->new(); $ua->agent('Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050516 Firefox/1.0.4 (MOOX M3)'); $ua->cookie_jar(HTTP::Cookies->new(file => "/home/medlir/download/shared/rlc/.cookies", autosave => 1)); while ($num <= $ARGV[1]) { print 'Downloading strip '.$num.': '; $url = 'http://www.reallifecomics.com/daily.php?strip_id='.$num; $httpRes = $ua->request(HTTP::Request->new (GET => $url)); @html = split(/\n/,$httpRes->content); foreach (@html) { if ($_ =~ /