Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: detecting of scalar is string or numeric

by clueless newbie (Curate)
on Feb 09, 2017 at 16:03 UTC ( [id://1181539]=note: print w/replies, xml ) Need Help??


in reply to detecting of scalar is string or numeric

From an earlier post: Thanks to Autobox you can do
use autobox::universal qw(type); say type("42"); # STRING say type(42); # INTEGER say type(42.0); # FLOAT say type(undef); # UNDEF
See chocolateboy's response in "How to tell apart numeric scalars and string scalars in Perl?"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2024-04-18 15:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found