Commiserations. Another Perl Best Practice shows its value.
Since he hasn't explicitly wrapped the terminator token in single quotes it will interpolate variables like a double quoted string.
When introducing a heredoc, quote the terminator.
Adding the explicit quotes around the heredoc marker takes almost no extra effort, but it relieves every reader of having to remember the default behavior.
In reply to Re^4: Global symbol
by Narveson
in thread Global symbol
by shekhar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |