Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Any reason NV is not marked as POK when accessed as string?

by vr (Curate)
on Mar 23, 2017 at 11:22 UTC ( [id://1185615]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    C:\>perl -MDevel::Peek -e "$x = 0.5; qq/$x/; Dump $x"
    SV = PVNV(0x38bb4) at 0xd217cc
    ...
      PV = 0xd16274 "0"\0
      CUR = 1
      LEN = 10
    
  2. or download this
    use Benchmark qw/ cmpthese /;
    $x = 42.0;
    ...
        F => sub { $h{ pack 'F', $x } = 1 },
        s => sub { $h{ $x }           = 1 },
    });
    
  3. or download this
           Rate    s    F
    s  344025/s   -- -86%
    F 2490475/s 624%   --
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1185615]
Approved by marto
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (8)
As of 2024-04-23 08:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found