in reply to Parsing form post (content)

CGI.pm will do this, as the manpage points out.

use CGI (); #no imports my $q = CGI->new( 'your=string;to=Parse&cgi=pm&will=do;it=correctly' ); # now all the stuff is in a CGI object as we know # and love it
--
http://fruiture.de