#get content from URL and check something, using "get" function. use LWP::Simple; # need to download LWP module from CPAN and install etc.. my $url = 'http://leeleong.com'; ##### main get function, simple perl, love it ####### my $content = get $url; die "Couldn't get $url" unless defined $content; ##################################################### # print $content; # you don't want to do this # Then go do things with $content, like this: if($content =~ m/resume/i) { print "They have resume information!\n"; } else { print "They do not have resume information.\n"; } WaitForKey(); sub WaitForKey() { print "\nPress any key to continue..."; chomp($key = ); }