Your question is unclear. What is it that you want to do better? Do you want to know a better way if a web page doesn't exist or a server is down? (Catch any error that the web server returns, if any- using their error number and string information or
a potentially dead server.)Or do you want to be more instructive to the user? (Try
utilities.) Would you like to improve speed efficiency? Also, no biggie, but you could try the more Perlish