Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: Sorting a hash. What am I doing wrong?

by zakb (Pilgrim)
on Jan 14, 2003 at 16:19 UTC ( #226875=note: print w/replies, xml ) Need Help??


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...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://226875]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (12)
As of 2020-11-24 10:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?