Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Distiguishing arguments: number-strings vs real integer

by clueless newbie (Deacon)
on Aug 10, 2018 at 01:49 UTC ( #1220171=note: print w/replies, xml ) Need Help??


in reply to Distiguishing arguments: number-strings vs real 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1220171]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2019-12-12 10:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?