in reply to hash of hashes maybe needed

The problem is that for the second case of airport (BBBB), the hash %in still takes into account the AAAA lines so the computation is made with the AAAA flights ....because you declared %in hash at the beginning and you are not reinitializing the same on your code (first foreach loop). You may change your code as
foreach my $airport ( keys %airport_hash){ my @lines = @{$airport_hash{$airport}}; my %in; ...... .....

Replies are listed 'Best First'.
Re^2: hash of hashes maybe needed
by steph_bow (Pilgrim) on Nov 27, 2008 at 11:30 UTC

    Thanks a lot brsaravan

    It works ! Now I would like to save the values found, that's why I think I need a hash of hash