I have this sub:
sub help
{
print <<HELP;
The help information goes here!
HELP
die();
}
That fails with "Can't find string terminator "HELP" anywhere before EOF". However, if I modify the code to this:
sub help
{
print <<HELP;
The help information goes here!
HELP
die();
}
Everything goes fine. But that's really ugly. So are HERE docs compatible with indentation? How do I stop getting the error and keep my code pretty at the same time? Any help from you wise monks would be greatly appreciated. (BTW, I can't seem to find the documentation for HERE docs, so any pointers would be nice there too.)