in reply to Re^4: perl sort issue while going through article at perl.com
in thread perl sort issue while going through article at perl.com
my %hash = ( key => 'foo', key => 'bar', key => 'quux', key => 'fizz', key => 'buzz', );
in the sense that its's legal and perl won't complain, you end up with %hash containing just one entry. Each assignment overrides the previous one, and you have
%hash = ( key => 'buzz', );
finally.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|
|---|