This is how you might do it from a perl script using a here page. Herepages are generally preferable to masses of print statements if you are not using some form of templating. I have added the debugging line as nothing will print is $afld[3] is not defined.
In you example you have unmatched tags, an extra > before you second font tag which can sometimes cause certain browsers to choke. This is not however your main problem. You have no display text defined for the email link - if you view source you will probably find the link is there but there is no text associated with it making it a little hard to see. You need to place some text where *****Some Link***** is in this example. You can use your variable again if you want the link to display as the raw email address.
cheersprint "<h1>Email address not defined!</h1>" unless $afld[3]; print <<END_OF_HTML; <tr> <td width="174" height="36"> <b><font color="#0000FF" size="2" face="Century Schoolbook"> Author's Email Address:</font></b> </td> <td width="408" height="36"> <font face="Times New Roman" size="2"> <a href="mailto:$afld[3]">*****Some Link*****</a></font> </td> </tr> END_OF_HTML
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In reply to Re: how to put perl variables inside html tags
by tachyon
in thread how to put perl variables inside html tags
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |