in reply to Hash Lookup

Firstly I'd avoid using $a and $b (in case they interfere with sort functions you may write later). Next, it is probably best to first write what you mean and then decide whether it needs factorising into a grep. But we can't know that without knowing what your pairwise structure looks like.

One world, one people

Replies are listed 'Best First'.
Re^2: Hash Lookup
by Anonymous Monk on Aug 21, 2015 at 14:14 UTC
    Firstly I'd avoid using $a and $b (in case they interfere with sort functions you may write later).

    Please read the docs of the module the OP is using, Hash::MostUtils.

      Beware: People are all too apt to ask for a solution to the wrong problem, hence we have no way of knowing given the lack of code so far whether this module is even a reasonable choice.

      One world, one people