Code:
use LWP::Simple;
open (HELLO, ">>thanks.txt");
foreach $person (@group) {
my $url = "http:domain/$person.txt";
my $content = get $url;
print HELLO $content;
@group contains list of names.
Hi there. The file from the website contains lots of details but I am just interested in the line that starts off with the word "Hobbies" and in particular those lines that contain the word football. I have tried using an if statement with regular expressions but the outfile just seems to be blank. I usually use this place as last resort (not because there is anything wrong with it!) but because I do know I should try, try, and try again but I just seem to have hit a brick wall with this one.
Any help is much appreciated.
Thanks