use LWP::Simple; my $url = 'https://code.google.com/archive/p/dotnetperls-controls/downloads/enable1.txt'; my $file = 'a.txt'; getstore($url, $file);