P is for Practical | |
PerlMonks |
Re: Distiguishing arguments: number-strings vs real integerby tinita (Parson) |
on Aug 10, 2018 at 14:50 UTC ( [id://1220200]=note: print w/replies, xml ) | Need Help?? |
You can use the B module to get the internal flags. See my comparison which I did at the Perl Toolchain Summit. It includes several examples where it's not clear if a variable is a number or a string: https://perlpunk.github.io/perl5-numbers-and-json-yaml/
In Section
Seekers of Perl Wisdom
|
|