readonly icon indicating copy to clipboard operation
readonly copied to clipboard

ReadonlyX doesn't handle compiled regexps

Open offsides opened this issue 4 years ago • 0 comments

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?

offsides avatar Dec 07 '21 15:12 offsides