in reply to [untitled node, ID 142613]
everything you send to your program in the query string will end up in $ENV{'QUERY_STRING'}. You can either parse that manually yourself, or as others have suggested, use CGI.pm which will do all the work for you :).