On 2019-06-27 05:32:03, OLEG wrote:
Show quoted text> $ perl -MScalar::Util=isdual -MData::Dump=dump -E '$a = "xxx"; warn
> isdual($a); dump $a; warn isdual($a)'
> Warning: something's wrong at -e line 1.
> "xxx"
> 1 at -e line 1.
>
> ------------------
>
> Expected:
> Warning: something's wrong at -e line 1.
> "xxx"
> Warning: something's wrong at -e line 1.
Possibly caused by using "+0" on the argument here:
https://metacpan.org/source/GAAS/Data-Dump-1.23/lib/Data/Dump.pm#L232
I wonder if the check could be replaced using Scalar::Util::looks_like_number() (if it's available) --- in most (all?) cases it should return the same as the current check and we could also get rid of the "no warnings" block.