Subject: | add interface to SvREADONLY and SvREFCNT |
As described in <http://www.nntp.perl.org/group/perl.perl5.porters/2016/08/msg238712.html>, it would be nice if Scalar::Util had functions for getting the refcount of a variable and making a variable read-only.
There's already a 'readonly' function for getting the RO status, so 'set_readonly($var)' seems like a natural extension. The other one could be done as 'refcount($var)'.