in reply to Re^3: Global symbol
in thread Global symbol

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.

Heredoc Quoters

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.