in reply to There is a way to LOCK a SCALAR?
$ perl -e'$foo=\"I am immutable"; $$foo="fie!";' Modification of a read-only value attempted at -e line 1. $
Is that what you want?
Update: Better yet,
$ perl -e'*foo=\"I am immutable"; $foo="fie!";' Modification of a read-only value attempted at -e line 1. $
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: There is a way to LOCK a SCALAR?
by calin (Deacon) on Dec 19, 2003 at 12:35 UTC |