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!
In reply to Re: Using constants as methods
by LanX
in thread Using constants as methods
by vsespb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |