in reply to Re^5: problems with flip flop
in thread problems with flip flop

hi, thanks for that. unfortunately I have an appointment now, so I can't try your script today. But I'm looking forward to run it tomorrow morning. Thanks again, have a nice evening

Replies are listed 'Best First'.
Re^7: problems with flip flop
by bio25 (Initiate) on Aug 18, 2011 at 07:21 UTC

    HI, still the same problem with your script. If I print, for example,

    while (($GeneID, $BMB) = each %hash) { print "$GeneID => $BMB[0]\n";}

    I still get this output:

    9190899 => 15576 9190898 => 15576 9191049 => 15576 9190897 => 15576 9191048 => 15576

    all keys but the same values. I'm trying to figure it out!

    Okay, I have no idea where the problem is!

      Okay, several hours later and I have no idea where the problem is!

        Forget about it. Flip-Flop was okay, just replaced

        while ( ($GeneID, $BMB) = each %hash) { print "$GeneID => $BMB[0]\n";

        with

        foreach my $key (keys %hash) { foreach my $val (@{$hash{$key}}) { print "$key --> $val\n";

        and now everything is fine. Thanks for the help