|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re: How can I group lines in a file?by johngg (Canon) |
| on May 16, 2009 at 23:10 UTC ( [id://764461]=note: print w/replies, xml ) | Need Help?? |
|
zwon has pointed you in the right direction but I note that your output is not sorted by name but retains the order in which names first occured in the data. To keep that order you will need to preserve it in the hash and sort on it when printing.
The output.
I hope this is of interest. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||