Perl::...seVars(3pm)
π Perl::...seVars(3pm) π
okay bestie, welcome to this User Contributed Perl Documentation page π
itβs all about Perl::Critic::Policy::NamingConventions::ProhibitMixedCaseVars, and it is giving βname your variables correctly or catch these vibes.β π«Ά
π NAME π
Perl::Critic::Policy::NamingConventions::ProhibitMixedCaseVars β write "$my_variable = 42" instead of "$MyVariable = 42".
ποΈ AFFILIATION ποΈ
This Policy is part of the Perl::Critic::Deprecated distribution. Yes, deprecated era, but still iconic in its own way π«Ά.
πΈ DESCRIPTION πΈ
okay so Conwayβs recommended naming convention is to use lower-case words separated by underscores. Well-recognized acronyms can be in ALL CAPS, but must be separated by underscores from other parts of the name. No cap, thatβs the whole vibe β¨
the slay list is on top, the not-it list is on the bottom πβ
my $foo_bar #ok
my $foo_BAR #ok
my @FOO_bar #ok
my %FOO_BAR #ok
my $FooBar #not ok
my $FOObar #not ok
my @fooBAR #not ok
my %fooBar #not ok
ποΈ CONFIGURATION ποΈ
This Policy is not configurable except for the standard options. Thatβs it β no secret extra knobs, just the standard options, periodt π
π SEE ALSO π
Perl::Critic::Policy::NamingConventions::ProhibitMixedCaseSubs
This policy is deprecated. Its functionality has been superseded by Perl::Critic::Policy::NamingConventions::Capitalization.
π«Ά AUTHOR π«Ά
Jeffrey Ryan Thalhammer <thaljef@cpan.org>
π COPYRIGHT π
Copyright (c) 2005-2013 Jeffrey Ryan Thalhammer. All rights reserved.
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 π β perl v5.40.0, dated 2023-01-20, page Perl::...seVars(3pm). periodt β¨
π¦ where this page comes from
- epel 10: perl-Perl-Critic-Deprecated 1.119-27.el10_0 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms