in reply to use of hex-number in references

Yes, they are memory locations and could be more or less useful with a core file. It would take a good knowledge of perl implementation details to make that meaningful. A perl built with -DDEBUGGING is probably a better investment for such an investigation.

You can get the decimal address with print 0 | $ref;, which places $ref in numeric context. Since | acts on bitfields, $ref's target address is coerced into an unsigned integer.

After Compline,
Zaxo

Replies are listed 'Best First'.
•Re^2: use of hex-number in references
by merlyn (Sage) on Jun 09, 2004 at 01:17 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