in reply to Using constants as methods
This constant won't be available from other files, especially it won't be inherited, but the getter method would.
So shall it be private or not?
Oh! Sorry I misread constant as Readonly , never mind.
I don't think that use constant is a good idea because it does the same but in an obfuscated way.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using constants as methods
by vsespb (Chaplain) on Mar 13, 2016 at 01:50 UTC | |
by LanX (Saint) on Mar 13, 2016 at 01:52 UTC |