Skip Menu |

This queue is for tickets about the Scalar-Readonly CPAN distribution.

Report information
The Basics
Id: 73531
Status: new
Priority: 0/
Queue: Scalar-Readonly

People
Owner: Nobody in particular
Requestors: NEILB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.02
Fixed in: (no value)



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