in reply to Re: Re: "Countdown" (golf)
in thread "Countdown" (golf)

Why does neither of these return 'blade'?

my @letters = qw(b a l d y a e y t);

__PASTE__

~/perl_stuff> grep blade /usr/dict/words blade switchblade ~/perl_stuff> perl golf.pl aye baldy bay bayed beady bey by bye byte day delay dey dye lady lay lye y ye yea yet

<a href="http://www.graq.co.uk">Graq</a>

Replies are listed 'Best First'.
Re: Re(3): "Countdown" (golf)
by blakem (Monsignor) on Nov 30, 2001 at 15:19 UTC
    Check out my reply to japhy, and notice that all your results contain at least one 'y'.... Add the '?' to the end of the regex, and 'blade' will show up.

    -Blake