#!/usr/bin/perl -w use strict; use LWP::Simple; my $content = getstore("http://www.jaywil.com/libsearch/SAMPLE.TXT", $your_file_name); open(DATAFILE, $yourfilename); # your file manipulation code here