Subject: | looks_like_number returns false for Readonly scalars |
To reproduce:
% perl -MReadonly -MScalar::Util=looks_like_number -le 'Readonly my $x
=> 10; print looks_like_number($x) ? "Yes $x" : "No $x";'
This outputs for me:
No 10
I originally thought this was an issue with Readonly, but the code there
doesn't do anything to the value but tie it so that STORE and UNTIE croaks.
Looking at looks_like_number didn't reveal an obvious source of the
problem either, but I thought I'd pass it along.