Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re (tilly) 4: Golf challange: match U.S. State names

by MeowChow (Vicar)
on Jun 06, 2001 at 08:54 UTC ( #86116=note: print w/replies, xml ) Need Help??


in reply to Re (tilly) 4: Golf challange: match U.S. State names
in thread Golf challange: match U.S. State names

Your first one can go down to 121:
sub state{ grep$_[0]eq$_,'WVTNHINMSCORIDCAKSDE WIALAR MNCTX NVAZ'=~/(?=(\w\w))/ +g,'FLGAILKTKYMAMDMEMIMOMTNDNENJNYOHOKPAUTWAWY'=~/../g }
... or you could have just taken the easy route by converting the && into an &.
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://86116]
help
Chatterbox?
and the pool shimmers...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2016-12-10 14:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (163 votes). Check out past polls.