- Just what is 'readonly' in Perl and Perl 6?
- Readonly variable
- Module Readonly
- What is the difference between the constant construct in Perl and the Readonly construct in Perl?
- Reliability of SvREADONLY
Faster way to readonly are Attribute::Constant, Data::Lock, Scalar::Readonly,
use Scalar::Readonly qw/ readonly_on /;
use Devel::Peek qw/ Dump /;
SV = IV(0x99ba38) at 0x99ba3c
REFCNT = 1
FLAGS = (PADMY,IOK,READONLY,pIOK)
IV = 66
Scalar::Readonly::readonly also simply checks for SvREADONLY flag, and no others (no FAKE), so it'll be a false positive on HASH keys