in reply to Prototyping functions used in here-docs

This code results in a syntax error at the end of the here-doc. The problem is that Perl doesn't know about dequote yet. Making the dequote usage more explicit (&dequote, dequote()) doesn't help in this case.
It has nothing to do with dequote or prototypes. You have essentially written
my $foo = ' ...
which results in a syntaxt error (Can't find string terminator "'" anywhere before EOF in this case, " END" in yours).

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.