Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: (Golf) Let's go bowling

by abstracts (Hermit)
on Aug 08, 2001 at 22:20 UTC ( #103147=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $_ = join '', @b;
    
    ...
    $s+=$_ for/\d+/g;
    
    print "$_: $s\n";
    
  2. or download this
    print score(join'',qw(5 / 6 3 X X 7 0 4 3 X 4 / 8 1 3 / 6)),"->146\n";
    print score(join'',qw(X X X X X X X X X X X X)), "->300\n";
    ...
    ($_,$s)=@_;1while s#(.)/(.)#$1.($1<1?'x':10-$1)."\L$2y".$2#e||s#X(\d\d
    +)#x$1$1#||s#X(..)#"x\L$1z".$1#e||s#(y.|z..)$##||s#x#55#;$s+=$_ for/\d
    +/g;$s
    #####
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (20)
As of 2014-07-31 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (251 votes), past polls