Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: use of hex-number in references

by tachyon (Chancellor)
on Jun 09, 2004 at 05:50 UTC ( [id://362628]=note: print w/replies, xml ) Need Help??


in reply to Re: use of hex-number in references
in thread use of hex-number in references

And you can actually get to them using Devel::Pointer.

use Devel::Pointer; $a = 'Hello World'; $scalar_ref = \$a; print "Scalar Ref is $scalar_ref\n"; $what = unsmash_sv(0+$scalar_ref); print "$scalar_ref is actually >$what<\n"; __DATA__ Scalar Ref is SCALAR(0x1ab2734) SCALAR(0x1ab2734) is actually >Hello World<

cheers

tachyon

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-29 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found