Don't ask to ask, just ask | |
PerlMonks |
Re: when to capitalize package variablesby jcb (Parson) |
on Feb 06, 2021 at 02:23 UTC ( [id://11127964]=note: print w/replies, xml ) | Need Help?? |
In this case, since the name is itself a quasi-acronym, all-uppercase is fine. I normally use all_lowercase for local variables, CapitalizedCamelCase for global variables, and ALL_UPPERCASE for constants, but very short names can end up all uppercase as well, if that seems to make sense in context. In your case, since you are "following suit" with a feature of another package, I say that "UC" makes sense in context.
In Section
Seekers of Perl Wisdom
|
|