Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: when to capitalize package variables

by jcb (Parson)
on Feb 06, 2021 at 02:23 UTC ( [id://11127964]=note: print w/replies, xml ) Need Help??


in reply to when to capitalize package variables

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11127964]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-03-29 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found