I need to provide a package variable in a module I'm working on to let the user turn on or off a feature. It's a simple non object oriented module. I've used Data::GUID::Any before and remembered there is a package variable called UC that is used exactly like what I want to do. The user can get lower case GUIDs by setting it to false but it defaults to positive.
local $Data::GUID::Any::UC; guid_as_string(); # will be lower case
My question is since this variable isn't a constant should it be uppercase? Perhaps the author just wanted to avoid having it look similar to uc().
In reply to when to capitalize package variables by Lotus1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |