[Snipped] >> 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?
The reason that when you add print @$valref{cn}; that you get ARRAY(0x25d9ec4) is because it is printing the actual reference to the data, not the data. So that means that ARRAY(0x25d9ec4) is the actual memory location of the data that you are referencing. If you copy that reference, you will copy the address so that you are still looking at the same data. It is similar to pointers in C. The reference "points" to the data in memory, whereas the variable isn't actually holding the data. Does that make sense? HTH, Brian -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]