Hey bseel,
My MUA believes you used
to write the following on Wednesday, July 30, 2003 at 9:38:08 AM.
>>> I was thinking (and the documents say) these are references, but I
>>> have had a hard time getting my head around references...
>>>
>>> I have tried adding this
>>> print @$valref{cn};
>>> but all it prints is
>>> ARRAY(0x25d9ec4)
>>> and I want it to print the value of "cn" which is
>>> Musson, Timothy L
>>>
>>> Can anyone point me in the right direction?
bmc> The reason that when you add print @$valref{cn}; that you get ARRAY(0x25d9ec4) is
because it is printing the actual
bmc> reference to the data, not the data. So that means that ARRAY(0x25d9ec4) is the
actual memory location of the data that
bmc> you are referencing. If you copy that reference, you will copy the address so
that you are still looking at the same
bmc> data.
bmc> It is similar to pointers in C. The reference "points" to the data in memory,
whereas the variable isn't actually
bmc> holding the data.
bmc> Does that make sense?
Thanks,
Yes it does make sense, but it just leaves one question...
How do I print the data? :-)
--
Tim Musson
Flying with The Bat! eMail v1.62q
Windows 2000 5.0.2195 (Service Pack 2)
This message will self-destruct in five seconds.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]