Syntactic Confectionery Delight | |
PerlMonks |
Re: Brain Teaserby marcink (Monk) |
on Jun 10, 2001 at 22:59 UTC ( [id://87338]=note: print w/replies, xml ) | Need Help?? |
Update: added <READMORE> to let others have fun too ;-)
Why does it evaluate to zero It does not ;-) add a print "\n"; after that and you'll see. Meaning:
Since references return memory addresses when accessed as numbers, the last line will result in some value close to 1, just a little smaller (this is because (1) is allocated before (2)). Anyway, that's my guess. Anyone care to point my mistakes? -mk
In Section
Meditations
|
|