Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: Does the experimental builtin::stringify() do anything that scalar() doesn't ?

by syphilis (Archbishop)
on Apr 06, 2024 at 01:48 UTC ( [id://11158710]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Does the experimental builtin::stringify() do anything that scalar() doesn't ?
in thread Does the experimental builtin::stringify() do anything that scalar() doesn't ?

>> Is there any reason (apart from oversight) for that ? Does it matter ?
> Interesting. I have no idea.


I doubt that it matters. In this instance bultin::stringify is doing the same thing to its argument as interpolation does:
D:\>perl -MDevel::Peek -le "$x = 100; $y = \"$x\"; Dump $x;" SV = PVIV(0x1d14cb52750) at 0x1d14cb54110 REFCNT = 1 FLAGS = (IOK,pIOK,pPOK) IV = 100 PV = 0x1d14cb85630 "100"\0 CUR = 3 LEN = 16 D:\>perl -MDevel::Peek -le "$x = 100.5; $y = \"$x\"; Dump $x;" SV = PVNV(0x1ba09babdd8) at 0x1ba09be1070 REFCNT = 1 FLAGS = (NOK,pNOK) IV = 0 NV = 100.5 PV = 0x1ba09c47d00 "100.5"\0 CUR = 5 LEN = 48
If there was a problem with that, then it would likely have already been encountered.
(I actually have a vague and hazy recollection that this difference wrt the pPOK flag serves a purpose.)

Thanks also to jdporter and davido for their helpful inputs.

Cheers,
Rob

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-05-22 01:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found