pretty much every web browser on the planet provides some form of `save page as...' functionality (which would eliminate needing an external program)
those same browsers allow you to cut and paste the URL for the current page so just pass that as an argument to your program (perldoc perlvar, look for @ARGV)
not to mention things like wget or curl which already do this (and have things like progress indicators)