|Perl Monk, Perl Meditation|
which data structure do I need for this grouping problem?by Anonymous Monk
|on Sep 04, 2018 at 13:39 UTC||Need Help??|
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to think of how to implement the following:
My task is, if I have a tab-separated file, like the following example lines:
How would I group the lines using BOTH name & date as "key", i.e. the output would be:
because nick, on 20/5/1950 has 3 measurements.
I know how I would group only using the name:
but now I need to also take the date into account. Can you help me?