Perl::...dComma(3pm)
π NAME π
okay bestie, gather round, because this page β Perl::...dComma(3pm) β is literally just one job: it's the manual for Perl::Critic::Policy::Documentation::ProhibitParagraphEndComma, and that whole mouthful basically means "bestieβ¦ why does your paragraph end in a comma" π
β¨ DESCRIPTION β¨
So this policy is part of the Perl::Critic::Pulp add-on π«Ά and its whole vibe is: don't end a POD paragraph with a comma. That's it. That's the policy.
Like, look at this mess π
Some text, # bad, meant to be a full-stop?
Some more text.
See that comma up there? bad. π Nine times out of ten you meant a full-stop, and it's giving "I forgot how sentences work."
Same energy when it's the tail end of a SEE ALSO list where the comma should've just⦠not been there:
=head1 SEE ALSO
L<Foo>,
L<Bar>, # bad, meant to be omitted?
Not me spotting a trailing comma in a link list π (that one was probably meant to be omitted entirely).
BUT β and this is the important part, so listen up π β a paragraph is allowed to end with a comma when it comes right before an =over or a verbatim block. In that case the comma is read as introducing a quotation or example, which is a totally valid, iconic move. Like:
For example, # ok, introduce an example
foo(1+2+3)
Or one of, # ok, introduce an itemized list
=over
=item Foo
See? Comma there = introducing something. Comma anywhere else = π¨ caught π¨.
Disabling
If you genuinely don't care about any of this, no stress β you can disable ProhibitParagraphEndComma from your .perlcriticrc in the usual way (go peek at "CONFIGURATION" in Perl::Critic if you need the rundown):
[-Documentation::ProhibitParagraphEndComma]
periodt. π
π SEE ALSO π
Go read these too, they're fr fr useful:
Perl::Critic::PulpPerl::CriticPerl::Critic::Policy::Documentation::ProhibitParagraphTwoDots
π HOME PAGE π
The whole thing lives at http://user42.tuxfamily.org/perl-critic-pulp/index.html β go say hi π¦
βοΈ COPYRIGHT βοΈ
Copyright 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2019, 2020, 2021 Kevin Ryde
Perl-Critic-Pulp is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
Perl-Critic-Pulp is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Perl-Critic-Pulp. If not, see <http://www.gnu.org/licenses/>.
and that's the whole thing girlie π this page was served up by perl v5.40.1 on 2025-10-21, filed under Perl::...dComma(3pm) β no cap, go forth and delete your trailing commas πβ¨
π¦ where this page comes from
- ubuntu resolute: libperl-critic-pulp-perl 100-1 Β· GPL-3.0-or-later
- ubuntu stonking: libperl-critic-pulp-perl 100-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms