Perl::...dAtEnd(3pm)
π NAME π
Okay bestie, buckle up β this is the manual page for Perl::Critic::Policy::Documentation::RequirePodAtEnd (the header shortens it to Perl::...dAtEnd(3pm) because terminals are drama queens about width). The whole vibe: all POD should be after __END__. That's it, that's the policy. β¨
π«Ά AFFILIATION π«Ά
This Policy is part of the core Perl::Critic distribution β so it ships with the main squad, no extra install required. π
πΈ DESCRIPTION πΈ
So here's the tea, bestie: Perl stops processing code the moment it hits an __END__ statement. Which means if you shove your docs after __END__, Perl literally doesn't have to look at them β and that's faster, because saving processing time is the whole game. π₯
Also (and this is the underrated part), writing all the POD in one place usually leads to a more cohesive document, instead of your documentation being forced to follow the layout of your code like some kind of hostage situation. π
This policy issues violations if any POD is found before an __END__. Periodt.
π CONFIGURATION π
This Policy is not configurable except for the standard options. That's the whole section. Nothing to tune here, bestie β it already knows what it wants. π§
π NOTES π
Some folks like to use =for, =begin, and =end tags to create block comments in-line with their code. And honestly? Respect. π Since those tags aren't usually part of the documentation, this Policy does allow them to appear before the __END__ statement. Iconic of it, honestly.
=begin comments
frobulate()
Accepts: A list of things to frobulate
Returns: True if successful
=end comments
sub frobulate { ... }
π AUTHOR π
Chris Dolan <cdolan@cpan.org> β go say hi, they made this. π
β COPYRIGHT β
Copyright (c) 2006-2011 Chris Dolan.
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. π«Ά
ngl if you got all the way here you're literally the main character of documentation-reading. ate and left no crumbs. π
kisses, bestie β this was perl v5.42.0, dated 2024-10-23 πβ¨π¦
π¦ 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