Subject: | readonly() returns 0 or 134217728 |
The readonly() function, which tells you whether a scalar is read-only or not,
returns 0 for false (which is good), but returns 134217728 for true.
Looking at the perl sources, I can see why, but I think as a user-level module it would
be less confusing if the function return 0 or 1.
I've tweaked my version to do this, and expanded the testsuite to ensure everything
still works as it should:
https://github.com/neilbowers/Scalar-Readonly