Thanks!
Since, for a boolean type, it is reasonable to implement it as a ref to a scalar (and that is how it has been done over and over in several different JSON modules), I'd just treat a reference to a scalar as a boolean. The only change required is using reftype() or $ref =~ /SCALAR/, as ref() returning exactly "SCALAR" is already handled that way.
- tye
In reply to Re^5: Making JSON::{PP,XS} not decode true/false to JSON::{PP,XS}::Boolean objects (\$)
by tye
in thread Making JSON::{PP,XS} not decode true/false to JSON::{PP,XS}::Boolean objects
by sedusedan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |