use URI; my $u = URI->new("http://www.adomane.com"); $u->query_form(var => 'yes', var2 => 'yes and no', var3 => 'okay'); print $u->as_string;