in reply to how to download files from the web
Check out Bundle::LWP. It comes with lwp-request,
which you should look at, because it has some good examples
of, obviously, making web requests, but also of doing so
with basic authentication schemes.
In Section
Seekers of Perl Wisdom