Perl::C...dOutCode(3)
π Perl::C...dOutCode(3) β the vibe
okay bestie, quick context before we dive in: this is a page from the User Contributed Perl Documentation, and it's all about a lil Perl::Critic policy that has opinions about your comments. let's get into it π«Ά
β¨ NAME β¨
Perl::Critic::Policy::Bangs::ProhibitCommentedOutCode β commented-out code is usually noise. It should be removed. periodt. ποΈ
πΈ AFFILIATION πΈ
This Policy is part of the Perl::Critic::Bangs distribution. so like, it lives there. that's its home. its whole address. π
π¦ DESCRIPTION π¦
so here's the tea: commented-out code is often a sign of a place where the developer is unsure of how the code should be. it's giving "idk, maybe? let me just leave this here in case" energy. π
and like, if historical information about the code is actually important to you, then keep it in your version control system. that's literally what it's for, bestie. git is right there. π
π CONFIGURATION π
By default, this policy attempts to look for commented out code by looking for variable assignments in code as represented by the regular expression qr/\$[A-Za-z_].*=/ found in a comment. β¨
You can change that regex by specifying a value for commentedcoderegex. iconic, customizable, we love options. π
[Bangs::ProhibitCommentedOutCode]
commentedcoderegex = \$[A-Za-z_].*=/
π AUTHOR π
Andrew Moore amoore@mooresystems.com
π ACKNOWLEDGMENTS π
Adapted from policies by Jeffrey Ryan Thalhammer <thaljef@cpan.org>, Based on App::Fluff by Andy Lester, <andy at petdance.com>
π COPYRIGHT π
Copyright (C) 2006-2017 Andy Lester and Andrew Moore
This library is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0.
and that's the whole page, fr fr π
this was rendered by perl v5.42.0 on 2025-07-25 β thanks for reading, bestie, mwah πβ¨π¦
π¦ where this page comes from
- fedora 43: perl-Perl-Critic-Bangs 1.14-3.fc43 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms