Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 wandering the Monastery: (12)
As of 2014-09-19 18:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (144 votes), past polls