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

You are perfectly right :(

I didn't notice the first line of the code snippet and read the remaining completely out of context. Sorry.

Careful with that hash Eugene.

Replies are listed 'Best First'.
Re^4: Global symbol
by Narveson (Chaplain) on Jun 21, 2008 at 05:11 UTC

    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.