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

•Re^2: use of hex-number in references

by merlyn (Sage)
on Jun 09, 2004 at 01:17 UTC ( [id://362602]=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

I just use "0 + $ref". Maybe that's a holdover from my many years of awk programming.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re^2: use of hex-number in references

Replies are listed 'Best First'.
Re: •Re^2: use of hex-number in references
by Zaxo (Archbishop) on Jun 09, 2004 at 01:59 UTC

    Yes, it makes no difference. It looks like a reference is always unsigned in numeric context, since 0+ gives the same result as 0|, while 0x8nnnnnnn would be negative taken as a 32 bit signed integer.

    After Compline,
    Zaxo

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-04-25 14:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found