in reply to use of string terminator within a subroutine

You cannot indent the terminator.

#WRONG: print <<FOO FOO #RIGHT: print <<BAR BAR

For extra credit, figure out how to use a regular expression to allow for arbitrarily indented terminators.


The intelligent reader will judge for himself. Without examining the facts fully and fairly, there is no way of knowing whether vox populi is really vox dei, or merely vox asinorum. -- Cyrus H. Gordon