On Sat, 2002-06-22 at 13:53, Shawn wrote:
> Hello all,
> I am working on a script that I have several debug statements that try to tell me
>what is contained in a hash referrence. While I am tailing the log file, the hashes
>derefference (%$hash_ref) to n/n (ei: 1/8) instead of the actual referrence (ie:
>user=>'1', pass=>'2'). The arrays referrences derefference (@$array_ref) just fine.
>
> Is there a reason for this, and is there a way I can see what the actuall values
>are? The values are passed just fine to the sub routines, I just want my debug log
>to show that values passed without having to set up a for loop (ie: print %$hash_ref).
>
> TIA,
> Shawn
probably you are trying to use the hash in scalar context,
you should be able to se the values like this:
print "@{ [ values %$hash_ref ] }\n";
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]