A clickable link in an HTML page needs to be HTML-entitized. If you mix that in with the problem of making a link that provides query form element values, you've got a mess.

So, steal this recipe!

use URI; use HTML::Entities; my $uri = URI->new("http://base.address/cgi/foo"); $uri->query_form( key1 => $value1, key2 => $value2, key3 => $value3 ); print '<a href="', encode_entities("$uri"), '">submit your query!</a>' +;

Replies are listed 'Best First'.