Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: extracting only those keys with uniq values in array list

by salva (Canon)
on Apr 20, 2021 at 13:51 UTC ( #11131512=note: print w/replies, xml ) Need Help??


in reply to extracting only those keys with uniq values in array list

my %seen; while(<>) { chomp; my ($k, $v) = split/\t/, $_; print("$k\t$v\n") if $seen{$k} eq $v; $seen{$k} = $v }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2021-05-13 20:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (142 votes). Check out past polls.

    Notices?