[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-WebCGI] MacPerl HTTP browser



At 12:57 PM -0800 11/19/1999, Detlef Lindenthal wrote:
> >From vlb@cfcl.com  Wed Nov 17 18:42:50 1999
>Date: Thu, 18 Nov 1999 02:12:19 +0100
>
>The Perl Cookbook, p. 643 ff., shows a small nice FTP Client;
>it also shows tools for SMTP, Usenet, POP3, ...
>But what about HTTP? I am dreaming of something like this:
>
>      @URLs = ($URL1,  $URL2,  URL3,  URL_many)
>      foreach $URL (@URLs) {
>        Go_and_get_and_save_on_my_harddisk_the_file_of_this_($URL)  }
>
>Who knows how to write this
>   sub  Go_and_get_and_save_on_my_harddisk_the_file_of_this_($URL)  }   ?

#Look harder in _Perl_Cookbook_     8^)
#recipe 20.1 on p. 708.

use LWP::Simple;
$content = get($URL);

__END__
-Eric


==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org