Perl::...seVars(3pm)

πŸ“¦
version 1.119 Β· 3 versions
, in epel 10

πŸŽ€ 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 (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