Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Getting indices of the same value that occurs multiple times in an array...

by reubs85 (Acolyte)
on Aug 04, 2011 at 11:27 UTC ( #918505=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Family    lacM    taba    mori    glyB    gly4
    OG_1    1    0    1    0    0
    OG_2    0    1    0    1    0
    
  2. or download this
    my $a=shift @COUNT;
    my @families=split(/\s+/,$a);
    ...
    foreach my $k (keys %participants) {
        $og_to_gid{$k}=$families[$participants{$k}];
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://918505]
Front-paged by Arunbear
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2017-08-17 03:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (279 votes). Check out past polls.

    Notices?