readonly
readonly copied to clipboard
ReadonlyX doesn't handle compiled regexps
When using compiled regexps (qr//), ReadonlyX doesn't work. If you try to assign the return from qr// to a new Readonly::Scalar it sets the value to undef, and if you try to make an existing variable readonly it fails with 'We do not know what to do with Regexp'. However, compiled regexps are functionally no different than scalars. Is there a reason Regexp refs aren't handled by ReadonlyX while they were by Readonly?