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

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!

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

    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