Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Checking a hash for two matching values.

by moritz (Cardinal)
on Sep 17, 2013 at 05:54 UTC ( #1054393=note: print w/ replies, xml ) Need Help??


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.


Comment on Re^2: Checking a hash for two matching values.
Download Code
Re^3: Checking a hash for two matching values.
by kcott (Abbot) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1054393]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (17)
As of 2014-08-27 15:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (243 votes), past polls