in reply to Constant names come into conflict with Perl style?
It is a good point. All caps subs are reserved, so it's better to use "constants" with at least a non-cap (underscore etc...).
cheers --stephanuse constant MY_PACKAGE => 'blah blah'; use constant APPROX_PI => 3.1415926; use constant _PI_ => 3; # ugly?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Constant names come into conflict with Perl style?
by grinder (Bishop) on Feb 08, 2007 at 09:25 UTC | |
by sgt (Deacon) on Feb 09, 2007 at 13:37 UTC |