Perl::Critic::Policy::ValuesAndExpressions::RequireQuotedHeredocTerminator3pm
Write " print <<'the_end' " or " print <<"the_end" ".
Affiliation
This Policy is part of the core Perl::Critic distribution.
Overview
Putting single or double-quotes around your HEREDOC terminator make it obvious to the reader whether the content is going to be interpolated or not.
print <<END_MESSAGE; #not okHello WorldEND_MESSAGEprint <<'END_MESSAGE'; #okHello WorldEND_MESSAGEprint <<"END_MESSAGE"; #ok$greetingEND_MESSAGE
Configuration
This Policy is not configurable except for the standard options.
Releases
10 releases since Debian 5.0 (Lenny); the text changed 9 times.