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...
In reply to Re: Re: Sorting a hash. What am I doing wrong?
by zakb
in thread Sorting a hash. What am I doing wrong?
by mndoci
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |