in reply to Creating constant arrays or hashes

You can also use the "constant" module:
use constant SCALAR_CONST => 3.14159265; use constant ARRAY_CONST => ( 'This', 'is', 'fun' ); use constant HASH_CONST => ( pi => 3.14159265, c => 299_792_458 ); # m/s #etc.
Which actually just creates convenient sub routines for you. ( I prefer this method because it is a little more explicit, plus it is self documenting. )