In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:
> --- Brian Jackson <[EMAIL PROTECTED]> wrote: > > We need to capture data from a website that happens to be a text file. > > Currently we have to manually save the data via the browser, then > > manually move the txt data and process it. > use LWP::Simple; > my $url = 'http://www.someserver.com/somepath/somedoc.txt'; > my $data = get( $url ); > open OUT, "> $file" or die "Cannot open $file for writing: $!"; > print OUT $data or die "Could not print to $file: $!"; you could do this with getstore() :) if you are doing this from a shell script, the GET program that came with libwww might be easier: GET http://www.perl.org > file.html -- brian d foy <[EMAIL PROTECTED]> - Perl services for hire CGI Meta FAQ - http://www.perl.org/CGI_MetaFAQ.html Troubleshooting CGI scripts - http://www.perl.org/troubleshooting_CGI.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]