title: How do I create a link on an image in a CGI script?
body: <p>I can successfully show image in my CGI scripts via CGI.pm, using this code:</p>
  
  <pre><code>#!/usr/bin/perl -w
  use CGI::Carp qw(fatalsToBrowser);
  use CGI qw/:standard/;
  print img {src =&gt; "../images/myimage.png", align=&gt;"CENTER"};
  </code></pre>
  
  <p>However when  I want to do is to include URL in that image, wo that whenever 
  people click on that image it will point to the desired url, this code   failed:</p>
  
  <pre><code>print img {src =&gt; "../images/myimage.png", align=&gt;"CENTER", -href=&gt;"www.google.com"};
  </code></pre>
  
  <p>What's the right way to do it?</p>