Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Unique list of hashes

by LanX (Saint)
on Mar 02, 2015 at 11:37 UTC ( [id://1118397]=note: print w/replies, xml ) Need Help??


in reply to Unique list of hashes

As a side note: I suggest you better try to find a unique identifier for each student and restructure your data:

%students = ( 1111 => { name => "Guy", college => "Yale", }, 2222 => { name => "Gil", college => "Harvard", }, );

Keep in mind that equally named persons are not that rare, even in the same university.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)

PS: Je suis Charlie!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-19 19:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found