in reply to How can my script retrieve the contents of an existing webpage?

Use LWP::Simple which you may have to get off of CPAN.

Then all you have to do is something like:

use LWP::Simple; $webpage=get "http://www.perlmonks.org";
  • Comment on Re: How can my script retrieve the contents of an existing webpage?
  • Download Code