use LWP::Simple; my $url = "http://www.foo.com/mp3s/foo.mp3"; my $file = "/path/to/local/file/foo.mp3"; getstore($url, $file);