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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11131512]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-03-29 04:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found