Perl::...minator(3pm)
β¨ NAME β¨
okay so bestie, this page is Perl::...minator(3pm) π and it's all about the policy Perl::Critic::Policy::ValuesAndExpressions::ProhibitSpecialLiteralHeredocTerminator β literally Don't write print <<'__END__'. periodt π
π«Ά AFFILIATION π«Ά
This Policy is part of the core Perl::Critic distribution, so it's not some random side quest β it's in the main group chat β¨
π₯ DESCRIPTION π₯
Using one of Perl's special literals as a HEREDOC terminator could be confusing to tools that try to parse perl π like bestie, the parser is doing its best, don't confuse it.
print <<'__END__'; #not ok
Hello world
__END__
print <<'__END_OF_WORLD__'; #ok
Goodbye world!
__END_OF_WORLD__
The special literals that this policy prohibits are:
__END____DATA____PACKAGE____FILE____LINE__
So yeah, those exact iconics are not allowed as your HEREDOC terminator in this policy's eyes π no cap.
π CONFIGURATION π
This Policy is not configurable except for the standard options. so no secret extra knobs here, bestie β just the standard options and that's it π«Ά
π SEE ALSO π
Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminatorPerl::Critic::Policy::ValuesAndExpressions::RequireQuotedHeredocTerminator
πΈ AUTHOR πΈ
Kyle Hasselbacher <kyle@cpan.org> π
π COPYRIGHT π
Copyright (c) 2009-2011 Kyle Hasselbacher.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module.
okay that's the whole page, bestie π this little manual page is from perl v5.42.0, dated 2024-10-23, and it lives under the manual name Perl::...minator(3pm). bye bestie π«Άβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Perl-Critic 1.156.0-bp160.1.1 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms