On Nov 11, 2003, at 1:47 PM, Christiane Nerz wrote:
Hi!
If I want to print out every value of a hash, what's wrong with doing it like that:
foreach (keys %hash) { print $hash{$_}; print "\n";}
Why do I only get one value???
I don't seen anything wrong with your code. I believe there is only one value in the hash, if that's all you see. Check the code that loads it.
What you probably want is:
foreach (keys %hash) { print "$_ => $hash{$_}\n"; }
-- Andrew Gaffney
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]