http://qs321.pair.com?node_id=434344


in reply to Re: Can the "#" character be passed via $ENV{QUERY_STRING} ?
in thread Can the "#" character be passed via $ENV{QUERY_STRING} ?

You don't need to load all of CGI to do this if you are taking the whole QUERY_STRING as a single value. You can use URI:Escape directly. It is an extremely lightweight module. You'll want to use uri_unescape, like so:
use URI::Escape qw(uri_unescape); my $query_string = uri_unescape $ENV{QUERY_STRING};