You'll get this error if you have a $variable in the heredoc text, that's not initialized. Since you're using "HTML" instead of 'HTML', any variable looking thingies will attempt to be interpolated.
And Perl reports the error at the usage, rather than then actual line where the variable is, which can be a little frusterating at times (like, *all* the time...)
--Chris
e-mail jcwren