http://www.perlmonks.org?node_id=255468


in reply to Re: Re: "Another thrice-damned version of Mastermind"
in thread "Another thrice-damned version of Mastermind"

Actually, it doesn't. As per Aristotle's suggestion above, the (grep/$_/,@;) would return true every time, thus always telling you you had four correct numbers.

Replies are listed 'Best First'.
Doh.
by tinypig (Beadle) on May 04, 2003 at 17:25 UTC
    Sorry, you guys are right. Strange, I thought I ran that this morning and it worked.