http://www.perlmonks.org?node_id=101735


in reply to Java script question

I can't say that I'm a javascript expert, but I do know a bit of Perl that will at least make this more readable. Use the q quotelike operator, and you won't need to escape all of your double-quotes.

print q|<a href="index.html" ONMOUSEOVER="javascript:pop('Average leng +th of game played','#CCCCCC')"; ONMOUSEOUT="kill()">AVERAGE</a>|;

Update: Naturally, add the standard "use CGI!" advice...