in reply to Re: Checking a hash for two matching values.
in thread Checking a hash for two matching values.

Some more test cases to consider:

{ m => 'catdog' }, { n => 'cat pics', o => 'cat', p => 'doggy' },

Both aren't included in your result list; might be interesting to know if they should.

Replies are listed 'Best First'.
Re^3: Checking a hash for two matching values.
by kcott (Archbishop) on Sep 18, 2013 at 01:02 UTC

    Yes, I had considered adding other test data: "cats", "dogs", "catalogue", "raining cats and dogs", etc. I wasn't really sure what walkingthecow wanted, which prompted the "Some test data would have been useful." comment.

    -- Ken