Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Distiguishing arguments: number-strings vs real integer

by tinita (Parson)
on Aug 10, 2018 at 14:50 UTC ( [id://1220200]=note: print w/replies, xml ) Need Help??


in reply to Distiguishing arguments: number-strings vs real integer

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/
  • Comment on Re: Distiguishing arguments: number-strings vs real integer

Replies are listed 'Best First'.
Re^2: Distiguishing arguments: number-strings vs real integer
by LanX (Saint) on Aug 10, 2018 at 15:28 UTC
    Great!

    Thanks Tina! :)

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-19 02:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found