# use like this: input string, output Hash PMC $P1 = get_query_params('foo=bar&baz=boo') $S1 = $P1['foo'] print $S1