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


in reply to Re: (Golf) mobile phone numbers - words
in thread (Golf) mobile phone numbers -> words

I really like this "inverted" regex method. As a sub, it can be brought down to 105 characters:
sub n{ $n=shift;@l=('','',qw([abc] [def] [ghi] [jkl] [mno] [pqrs] [tuv] [wxyz +]));$n=~s/./$l[$&]/ge;grep/^$n$/,@_ }
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print