in reply to Not writing to my local file.

From perldoc LWP::Simple:

getstore($url, $file)
  Gets a document identified by a URL and stores it in the file. The
  return value is the HTTP response code.

I think you'll find that much easier.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.