However, I don't know why you don't write:
as merelyprint <<HEREDOC Some lines go here HEREDOC ; #this would be filtered out if I didn't leave a comment
The lone semicolon would scare me, and likely get edited away.print <<HEREDOC; Some lines go here HEREDOC
Keep in mind that the heredoc indicator is standing in for a complete string at the given location. For example:
The statement acts as if I had said:print <<DOUBLE_QUOTED . <<'SINGLE_QUOTED' . <<DOUBLE_QUOTED_AGAIN; This stuff is double quoted so I can see my $ENV{HOME} for home. DOUBLE_QUOTED This stuff is single quoted. I can make $10 really fast! SINGLE_QUOTED This stuff is also double quoted now. \a \a \a ding ding ding! DOUBLE_QUOTED_AGAIN
With XXX, YYY, and ZZZ being replaced literally with the following lines not counting the ending delimiter.print "XXX" . 'YYY' . "ZZZ";
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to Re: Perlish Debugging Style
by merlyn
in thread Perlish Debugging Style
by radiantmatrix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |