use LWP::Simple; my $content = get("http://www.mydomain.net/file.txt");