File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 4
4
5
5
= SUBTITLE A basic introductory example of a Perl 6 program
6
6
7
- Suppose that you host a table tennis tournament. The referees tell you the
8
- results of each game in the format C < Player1 Player2 | 3:2 > , which means
9
- that C < Player1 > won against C < Player2 > by 3 to 2 sets. You need a script that
10
- sums up how many matches and sets each player has won to determine the overall
11
- winner.
7
+ Suppose that you host a table tennis tournament. The referees tell you
8
+ the results of each game in the format C < Player1 Player2 | 3:2 > , which
9
+ means that C < Player1 > won against C < Player2 > by 3 to 2 sets. You need a
10
+ script that sums up how many matches and sets each player has won to
11
+ determine the overall winner.
12
12
13
13
The input data (stored in a file called C < scores.txt > ) looks like this:
14
14
Original file line number Diff line number Diff line change 4
4
5
5
= SUBTITLE How do I do what I used to do?
6
6
7
- These documents should not be mistaken for a beginner tutorial or a promotional
8
- overview of Perl 6; it is intended as a technical reference for Perl 6 learners
9
- with a strong Perl 5 background and for anyone porting Perl 5 code to Perl 6.
7
+ These documents should not be mistaken for a beginner tutorial or a
8
+ promotional overview of Perl 6; it is intended as a technical reference
9
+ for Perl 6 learners with a strong Perl 5 background and for anyone
10
+ porting Perl 5 code to Perl 6.
10
11
11
12
= head1 Perl 6 in a Nutshell
12
13
You can’t perform that action at this time.
0 commit comments