Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
http://www.perldoc.com/perl5.8.0/lib/constant.html
and gets into how constant references can address anonymous arrays, but this can be circumvented by assigning the reference to a new value(s). The same argument, I assume, can be made with hashes.
but this begs the question. Is there a way to lock the value of a hash such that each (key,value) pair contained cannot be altered? Oh, ye wise holders of the holiest of Perl knowledge, is there a way that this is supported by the language and/or module?
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: constant hash values?
by gjb (Vicar) on Sep 26, 2003 at 23:51 UTC | |
by Anonymous Monk on Sep 27, 2003 at 10:22 UTC | |
by Limbic~Region (Chancellor) on Sep 27, 2003 at 19:05 UTC | |
|
Re: constant hash values?
by Starky (Chaplain) on Sep 27, 2003 at 21:11 UTC |