$uri = URI->new('http://www.example.com/myperlscript.pl'); $uri->query_form( 'var1' => $var1, 'var2' => $var2 ); $page = get( $uri->as_string );