in reply to Prototyping functions used in here-docs

You should write:
dequote(<<' END');
Im not sure if the spaces in front of the end are desired. Check that.
Boris