in reply to Re^2: Can't find string terminator "ENDHEADER" anywhere before EOF
in thread Can't find string terminator "ENDHEADER" anywhere before EOF
The behaviour can't be changed because of backwards compatibility. The best that can be done is too clearly document the trap, and that has been done. Perl 6, not constrained by backwards compatibility, does allow whitespace before the token.