in reply to Re: Re: how to put perl variables inside html tags
in thread how to put perl variables inside html tags

Odd... Somewhere along the line you have done something you are not accounting for. At about this point, I would stick the following into the middle of your 'print <<HTML' block:
print <<HTML ...stuff that's already there ------BEGIN TEST------- Here is afld3: |$afld[3]| <a href="mailto:someone@somewhere.com">mail link 1</a> <a href="mailto:someone@somewhere.com">$afld[3]</a> <a href="mailto:$afld[3]">mail link 2</a> <a href="mailto:$afld[3]">$afld[3]</a> **What we want** -------END TEST------- ...more stuff that's already there HTML
Then run it and look at the html code this prints (not just what shows up visible in the browser) to see what is happening.