use CGI; my $cgi = new CGI; print $cgi->a({href => 'http://www.google.com', target => '_blank'}, 'Google');