Scalar::Util did not work for me.sub is_readonly { eval {my $save=$_[0]; $_[0]=$save;}; return $@ =~/read.?only/; }
In reply to Re^2: How could I check if a variable is 'read-only'?
by lifeboat
in thread How could I check if a variable is 'read-only'?
by vladb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |