use LWP::Simple; use strict; my $URL = 'http://www.google.com/images/firefox/google.gif'; getstore($URL,'google.gif') || warn $!;