... use warnings ... would've provided a valuable clue ...
Indeed, five valuable clues!
In reply to Re^4: HEREDOC weirdness by AnomalousMonk in thread HEREDOC weirdness by Anonymous Monk