Constants are different than normal variables, so I like how use constant constants look differently (due to lack of a sigil). Isn't that one of Perl's mantras?
Readonly uses tie. Tied variables are slower, and they behave erratically in a few situations.
On the other hand, Readonly works on types other than scalar.
In reply to Re^3: Export Constants Common to Lots of Packages
by ikegami
in thread Export Constants Common to Lots of Packages
by jffry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |