$ 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
In reply to Re: There is a way to LOCK a SCALAR?
by Zaxo
in thread There is a way to LOCK a SCALAR?
by gmpassos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |