An anchor (A) tag needs a HREF attribute to be considered a link. If you want to execute javascript code on a click, don't use an anchor tag. Use a SPAN tag with style settings to make it stand out as a link. The anchor tag can take a TARGET attribute that will open a new window if the named target window doesn't already exist.
Remember that anchor tags can also create named anchors within pages with the NAME attribute. These anchors don't get any special visual effects and don't react to mouse clicks.
---
print map { my ($m)=1<<hex($_)&11?' ':'';
$m.=substr('AHJPacehklnorstu',hex($_),1) }
split //,'2fde0abe76c36c914586c';