in reply to Unexpected CGI param behavior

If there is more than one param with the same name in the query string, param() return a list of the values (which is documented behaviour)...and that would also mess up your hash array.