Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Replaying Santa Claus Golf Apocalypse with Pugs/Perl6

by eyepopslikeamosquito (Canon)
on Mar 12, 2005 at 05:03 UTC ( #438876=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    say "Hello World!";
    
  2. or download this
    pugs hello.p6
    
  3. or download this
    Hello World!
    
  4. or download this
    # tsanta.pl. Santa Claus golf game test program.
    use strict;
    ...
    CheckWc($wc);
    PrintGolfScore($head, $tail, $rev, $mid, $wc);
    print "Hooray, you passed.\n";
    
  5. or download this
    *** Eugene van der Pijll: 89 (11 19 13 25 21) ***
    --- head.pl ---------------------------------------------
    ...
    $_=$1while/.^(.+)^/ms
    --- wc.pl   ---------------------------------------------
    printf"%010d\n",$.,<>
    
  6. or download this
    --- head.p6 ---------------------------------------------
    my$h=open@ARGS[0];print(($h.readline())[0..9])
    ...
    my$h=open@ARGS[0];my@l=$h.readline();
    my$i;for(@l){++$i}
    say join"",(split"",int(7e10+$i))[1..Inf];
    
  7. or download this
    You shot a round of 398 strokes.
    file1: running: 'pugs head.p6 in.tmp'...done (rc=0).
    ...
    file21: running: 'pugs wc.p6 in.tmp'...done (rc=0).
    You shot a round of 398 strokes.
    Hooray, you passed.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://438876]
Approved by thor
Front-paged by gmax
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2015-07-05 22:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls