[EMAIL PROTECTED] writes:

> As an early Christmas present, you are invited to play
> Santa Claus' newly constructed 5-hole golf course.
>
> The holes are likely too easy, but that will hopefully
> encourage more entries (feedback welcome). In fact,
> this whole golf game is a little experimental and
> hopefully we can improve its format based on the
> outcome of this game.
>
> Please post solutions only to me, Santa the Arbiter.
> But before posting, verify your entries with the below
> test program, tsanta.pl. I will verify that they are
> indeed ok and post a daily leaderboard. I am open to
> ideas re the winner's prize.
>
> In most fwp golf games, we all steal ideas; the idea
> here is to keep the source code secret, only the
> current leaderboard is known.
>
> The test program, tsanta.pl, should run on both Windows
> and Unix (forgive me, but I don't have a Unix machine
> available right now). To allow for cross-platform
> differences, please format your code with a leading
> #!/usr/bin/perl line if you want to use command-line
> switches. For example:
> #!/usr/bin/perl -n
> print
> This has golf score of 8 (5 for 'print', 3 for ' -n').
>
> All 5 holes manipulate text files. You may assume that
> said text files are always properly newline-terminated
> and that they do not contain any binary zeros.
> Similarly, your programs must properly newline-terminate
> everything they write (they always write to stdout).
> When in doubt about the specification, use the test
> program, tsanta.pl; if your entries pass the test
> program, they are ok.
>
> You must name your programs as shown below and put
> them in the same directory as the test program.
> That done, run the test program:
>   perl tsanta.pl
> to verify that your entries meet the specification.
>
> Hole 1.  head.pl. Print first 10 lines of a text file.
>
> Hole 2.  tail.pl. Print last 10 lines of a text file.
>
> Hole 3.  rev.pl.  Print a text file in reverse order.

Is that line oriented or char oriented?

-- 
Piers

   "It is a truth universally acknowledged that a language in
    possession of a rich syntax must be in need of a rewrite."
         -- Jane Austen?

Reply via email to