On Aug 17, 5:56 am, [EMAIL PROTECTED] (Chas Owens) wrote: > On 8/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > Hello, > > We read the content of external file like this: > > > open(TEXT,"newtext.txt"); > > print TEXT; > > close (TEXT); > > > But how to read a file located on another server? Is there a module or > > hack for it? > > This wouldn't work, obviously: > > > open(TEXT,"http://vunet.us/contact/index.asp"); > > print TEXT; > > close (TEXT); > > > Thanks. > > Take a look at > LWP::Simple:http://search.cpan.org/~gaas/libwww-perl-5.808/lib/LWP/Simple.pm > > specifically the get function.
great! thanks a lot! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/