in reply to Prototyping functions used in here-docs

Using parens works if you put them in the right place. And you'll need to indent your terminator the same amount as specified inside the quotes:

my $tempscript = dequote(<<' END'); !!! some text END