Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: coding rules

by ihb (Deacon)
on Jun 09, 2005 at 06:04 UTC ( [id://464977] : note . print w/replies, xml ) Need Help??


in reply to Re: coding rules
in thread coding rules

While package variables are usually constants, they are not always so. To use all-caps for something that isn't a constant will confuse your code's readers. I have yet to find a method of identifying non-constant globals with which I'm happy.

Capitalizing globals that may be changed, like $Stuff, is something I find nice.

ihb

See perltoc if you don't know which perldoc to read!