deadlock Message Board
[ January Full List | Reply ]

Re: reading a remote file in perl
From Jim on 12 Jan '00
replying to reading a remote file in perl posted by Chip

There's More Than One Way To Do It... but here's a simple method if
you're on Unix: use the built-in Lynx browser, like this (note the

@remote_text = `lynx -source`;

... and that's it! You now have the entire text stored neatly in an
array. If you want to put it in a file, do something like this:

$remote_text = join ('',@remote_text);
open (FILE,'>/path/to/your/file.txt');
print FILE "$remote_text";
close (FILE);

Hope it helps...

Reply to this message

Required Details
Your name:

Optional Details
Home page title:
Home page URL:
(if you'd like to receive automatic replies by email)

Your Message