Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Replaying Santa Claus Golf Apocalypse with Pugs/Perl6

by eyepopslikeamosquito (Archbishop)
on Mar 12, 2005 at 05:03 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-24 22:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found