Dear Monks!,
I have the following hash,
my %hash = (
1 => 'a', 2 => 'b', 3 => 'c',
4 => 'd', 3 => 'e', 6 => 'f',
3 => 'a', 8 => 'b', 1 => 'c',
);
When I print the hash using "print reverse %hash", it prints, " b2a3c1d4f6b8 ". What I expect is, the hash won't print duplicate value. ( b is a duplicate ). Probably the return value from reverse function do some magic. Please clarify me. When I use each function in while or using Dumper, it prints correctly.
Also I believe, the hash will print the value in the same order (not random and not sort by default). Whenever I print the hash (any hash), the values are printing in the same order. So please give what way the hash is printing.
In reply to Hash value
by irah