perlinks (&lt;a&gt; tags)
  %info = (
    tag    =&gt; &#39;a&#39;,                 # The HTML tag.
    href   =&gt; &#39;http://google.com&#39;, # The &lt;a href&gt; attribute.
    src    =&gt; &#39;http://google.com&#39;, # src is an alias for href
    target =&gt; &#39;_blank&#39;,            # The &lt;a target&gt; attribute
  );

  # For images (&lt;img&gt; tags)
  %info = (
    tag    =&gt; &#39;img&#39;,        # The HTML tag.
    src    =&gt; &#39;avatar.jpg&#39;, # The &lt;img src&gt; attribute.
   