http://qs1969.pair.com?node_id=226875


in reply to Re: Sorting a hash. What am I doing wrong?
in thread Sorting a hash. What am I doing wrong?

A hash's keys are always unique.

#!/usr/bin/perl -w use strict; my %hash = ( key1 => '1', key1 => '2' ); print join("\n", keys %hash);

prints 'key1' only...