Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Distiguishing arguments: number-strings vs real integer

by LanX (Archbishop)
on Aug 09, 2018 at 22:51 UTC ( #1220165=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    $s+=0;                                  # cast to num
    is_string($n);
    is_string($s);
    
  2. or download this
    SV = IV(0x228e98) at 0x228ea8
      REFCNT = 1
    ...
      CUR = 2
      LEN = 16
    42 looks_like_number
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2020-04-04 00:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (32 votes). Check out past polls.

    Notices?