in reply to Evaluating variables in here documents

You might also want to look into Text::Template, which provides a cleaner interface for filling in variables into text without having to use here documents.
  • Comment on Re: Evaluating variables in here documents