in reply to Not writing to my local file.

Try using getstore($url, $file).
use LWP::Simple; my $url = 'http://website'; my $file = 'cony.html'; getstore($url, $file);
I tried these on the command line and they worked:

note: this is from the POD docs for LWP::Simple.

--
hiseldl