I'm not sure why none of those work, but you could always assign the param values to regular scalar variables and then use those in the heredoc. Personally, I hate the CGI library. I never use it. I find it extremely cumbersome and annoying. I've written my own routines to handle most of what CGI does, and find them much easier to use. Tracy Dryden
tracy@bydisn.com
Well, from I've been able to dig up, fuctions won't be parsed in a here-doc, so my only choice is to assign them to scalars or a hash outside the here-doc. (anyone?)
I backed myself into this corner as a very inexperienced Perl and CGI programmer, and now I have to make enhancements that are very difficult, or so a complete rewrite that I don't have time for
That matches my experience. Personally, I've not run into this, because I tend to assign param() to an array or a hash to help the untainting and validation process.
I will warn you that here documents are interpolated by default. If you find that gets in the way, declare a non-interpolating here doc *or* construct the output using other techniques (concatenation, etc).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.