use strict; use URI; my $uri = URI->new(); $uri->query('THING=super%20hero&KEY=foobar'); my %hash = $uri->query_form(); print $hash{KEY}, "\n";