Perl::Critic::Policy::ValuesAndExpressions::ProhibitSpecialLiteralHeredocTerminator3pm
Don't write " print <<'__end__' ".
Affiliation
This Policy is part of the core Perl::Critic distribution.
Overview
Using one of Perl's special literals as a HEREDOC terminator could be confusing to tools that try to parse perl.
print <<'__END__'; #not okHello world__END__print <<'__END_OF_WORLD__'; #okGoodbye world!__END_OF_WORLD__
The special literals that this policy prohibits are:
- __END__
- __DATA__
- __PACKAGE__
- __FILE__
- __LINE__
Configuration
This Policy is not configurable except for the standard options.
Releases
9 releases since Debian 6.0 (Squeeze); the text changed 8 times.