|
|
| No such thing as a small change | |
| PerlMonks |
Re: Brain Teaserby marcink (Monk) |
| on Jun 10, 2001 at 18:59 UTC ( [id://87338]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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
|
|
||||||||||||||||||||||||||||||