in reply to How can I test for the representation of an integer?
See chocolateboy's response in "How to tell apart numeric scalars and string scalars in Perl?"use autobox::universal qw(type); say type("42"); # STRING say type(42); # INTEGER say type(42.0); # FLOAT say type(undef); # UNDEF
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How can I test for the representation of an integer?
by sm@sh (Acolyte) on Apr 25, 2016 at 14:18 UTC | |
by syphilis (Bishop) on Apr 26, 2016 at 01:06 UTC | |
Re^2: How can I test for the representation of an integer?
by Dave Burton (Initiate) on Nov 25, 2020 at 13:14 UTC |