in reply to Re^2: Export Constants Common to Lots of Packages
in thread Export Constants Common to Lots of Packages
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.
|
|---|