Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Selective printing of the Duplicatesby Kenosis (Priest) |
on Jan 30, 2013 at 17:48 UTC ( [id://1016127]=note: print w/replies, xml ) | Need Help?? |
Perhaps the following will help:
Output:
I want to print the one with "**" as 2nd column and ignore the rest of duplicates.. Doesn't this raise the issue of the indistinguishability of identicals? The script prints only unique records. chomp is used in case the last line of data above doesn't end with a newline.
In Section
Seekers of Perl Wisdom
|
|