in reply to get a value from a URL

Another option you have is to use CGI::Simple. It's a drop in replacement for CGI that doesn't have all the HTML generation methods.