Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: How to store all 1 s in perl

by Fletch (Bishop)
on Apr 08, 2021 at 01:30 UTC ( [id://11130982]=note: print w/replies, xml ) Need Help??


in reply to How to store all 1 s in perl

Not that this isn't going to fall on deaf ears . . .

You're treating it like a number so you're getting a number. Don't do that.

$ perl -MDevel::Peek=Dump -E 'Dump( 1 x 131 / 1 );Dump( 1 x 131 )' SV = NV(0x7f9a970202f0) at 0x7f9a97020308 REFCNT = 1 FLAGS = (PADTMP,NOK,READONLY,PROTECT,pNOK) NV = 1.11111111111111e+130 SV = PVIV(0x7f9a97020c38) at 0x7f9a970202c0 REFCNT = 1 FLAGS = (PADTMP,POK,READONLY,PROTECT,pPOK) IV = 1 PV = 0x7f9a96c1d730 "11111111111111111111111111111111111111111111111 +111111111111111111111111111111111111111111111111111111111111111111111 +111111111111111"\0 CUR = 131 LEN = 136

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-25 20:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found