in reply to Re: Matching value in hash help!
in thread Matching value in hash help!

What do you mean by "Your hash is inside out."?

Replies are listed 'Best First'.
Re^3: Matching value in hash help!
by Anonymous Monk on Sep 24, 2010 at 05:01 UTC

    It means that, in the hash you're currently using, the values you're looking for are in keys, and the keys you're searching with are in values.

    More useulf is a hash that looks like the following:

    AA => "Loc A", BB => "Loc A", TT => "Loc B", T => "Loc B", PP => "Loc C", # etc
Re^3: Matching value in hash help!
by ikegami (Patriarch) on Sep 24, 2010 at 14:16 UTC
    Compare the output of the following
    use Data::Dumper qw( Dumper ); print(Dumper(\%wind_dir)); print(Dumper(\%locs_by_wind_dir));