use CGI; print CGI->new( { name=>"josh",age=>26 } )->query_string; __END__ name=josh;age=26