Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Perl helpby kevbot (Vicar) |
on Sep 10, 2016 at 03:32 UTC ( [id://1171497]=note: print w/replies, xml ) | Need Help?? |
Hi hello_beginner,
I agree with hippo, this question is very similar to join column 3 for unique values. In fact, a few changes to the code I posted in Re: join column 3 for unique values gives the results that you require. If you have your data in data.txt This script, will give this output
If you often work on problems like these, I recommend reading Data::Table and the Data::Table Cookbook (especially Section 8.1: Reshaping - melting and casting for table statistics). As mentioned by stevieb, please take a closer look at How do I post a question effectively? especially the Select an informative title section.
In Section
Seekers of Perl Wisdom
|
|