use URI; my $u = URI->new( "http://www.example.com/" ); $u->query_form( { foo => 1, bar => 2 }, ';' ); print "$u\n";