in reply to Re: (Golf) Hangman Player
in thread (Golf) Hangman Player

Using your framework, I got f() down to 97.
($a=join"|",a..z)=~s/join"|",@{pop@_}//eg;($g=shift)=~s!_![$a]!g;/^$g$ +/&&push@m,$_ for@{pop@_};@m
If I could change the order of the arguments, I could cut 2 characters by make the shift a pop. I am a little perplexed as to why @{pop@_} won't let me do a @$_[0], which would cut another 3 characters. *shrugs*

Update: I feel slightly inadequate after reading japhy's contributions. *sighs*

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Replies are listed 'Best First'.
Re: Re: Re: (Golf) Hangman Player
by japhy (Canon) on Oct 04, 2001 at 20:29 UTC
    The reason is this:
    @$_[0] => @{$_}[0] => (@$_)[0]

    _____________________________________________________
    Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
    s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;