Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: (Golf) Hangman Player

by gbarr (Monk)
on Oct 04, 2001 at 20:54 UTC ( [id://116758]=note: print w/replies, xml ) Need Help??


in reply to (Golf) Hangman Player

Part 1 - 41 chars

sub f{ #2345678901234567890123456789012345678901 (my$i=shift)=~y/_/./;grep/^$i$/i,@{$_[0]} }
Part 1 with xtra credit - 55 chars

sub f{ #234567890123456789012345678901234567890123456789012345 my$a=shift;(my$b=$a)=~s/_/[^$a]/gi;grep/^$b$/i,@{$_[0]} }

Part 2 may follow later, but I have to get back to work :(

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (1)
As of 2024-04-25 05:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found