in reply to Perl script to download web content
LWP ships with a script lwp-download which does exactly this.