Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: (Golf) mobile phone numbers - words

by the_slycer (Chaplain)
on May 29, 2001 at 20:00 UTC ( #83987=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub num{
    $k=shift;for(@_){chomp;$n=lc;$n=~y/abcdefghijklmnopqrstuvwxyz/22233344
    +455566677778889999/;push@{$h{$n}},$_;$h{$k}
    }
    
  2. or download this
    sub num{
    #23456789_123456789_123456789_123456789_123456789_123456789_123456789_
    +123456789_123456789_123456789_123456789_12345678
    $k=shift;for(@_){$n=$_;chomp;lc;y/abcdefghijklmnopqrstuvwxyz/222333444
    +55566677778889/;push@{$h{$k}},$n if$k=~$_}$h{$k}
    }
    
  3. or download this
    sub num{
    $k=shift;for(@_){chomp;lc;$n=$_;y/abcdefghijklmnopqrstuvwxyz/222333444
    +55566677778889/;push@h,$n if$k=~$_}@h
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://83987]
help
Chatterbox?
[stevieb]: can anyone recommend a good IDE for C programming that has *proper* vim plugin support? I've tried Eclipse, Netbeans etc and just can't get anything to work properly on Linux. I'm open to paying, but not on some monthly/yearly plan (just a one-off cost)
[stevieb]: I'd go with CLion as it's very similar to what I use already (intelliJ for Perl, Pycharm for Python), but it's a recurring fee every year

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2017-01-18 19:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (163 votes). Check out past polls.