It can be done with tied arrays. Just override the STORE() subroutine to do nothing, or throw an error. See perltie.
"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.
In reply to Re: Is there a way to lock arrays?
by hardburn
in thread Is there a way to lock arrays?
by tphyahoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |