Skip to content

Commit bde7fe2

Browse files
committed
Add TITLE and AUTHOR to all cookbook examples
1 parent 3ff0590 commit bde7fe2

13 files changed

+56
-22
lines changed

categories/cookbook/01strings/01-00introduction.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
=begin pod
44
5-
=head1 NAME
5+
=TITLE Perl 6 Cookbook: Introduction to Strings
66
7-
Perl 6 Cookbook: Introduction to Strings
7+
=AUTHOR Scott Penrose
88
99
=head1 Definition
1010

categories/cookbook/01strings/01-01substrings.pl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
use v6;
22

33
=begin pod
4-
=head1 Substrings
4+
5+
=TITLE Substrings
6+
7+
=AUTHOR Scott Penrose
58
69
You want to access or modify a portion of a string, not the whole thing.
710

categories/cookbook/01strings/01-03exchanging-values.pl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
use v6;
22

33
=begin pod
4-
=head1 Swapping values
4+
5+
=TITLE Swapping values
6+
7+
=AUTHOR Scott Penrose
58
69
You want to swap values without using a temporary variable
710

categories/cookbook/01strings/01-04converting-values.pl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
use v6;
22

33
=begin pod
4-
=head1 Converting between characters and numbers.
4+
5+
=TITLE Converting between characters and numbers.
6+
7+
=AUTHOR Scott Penrose
58
69
You want to convert characters to their numeric value or vice-versa
710

categories/cookbook/01strings/01-19trimming-blanks.pl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
use v6;
22

33
=begin pod
4-
=head1 Trimming blanks from a string
4+
5+
=TITLE Trimming blanks from a string
6+
7+
=AUTHOR Scott Penrose
58
69
=end pod
710

categories/cookbook/02numbers/02-01valid-number.pl

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
use v6;
22

3-
=pod
4-
53
=begin pod
6-
=head1 Valid Number
4+
5+
=TITLE Valid Number
6+
7+
=AUTHOR Steve Mynott
78
89
You want to check if a string is a valid number.
910
@@ -15,7 +16,7 @@ =head1 Valid Number
1516
# that variable will cause it to be coerced into an integer or a
1617
# number.
1718
18-
# Ensure that a variable is used to store a real number.
19+
# Ensure that a variable is used to store a real number.
1920
2021
my Num $number;
2122
@@ -28,8 +29,8 @@ =head1 Valid Number
2829
# it against the rule for integers or reals.
2930
3031
# XXX At the moment you have to make use of modules/Grammar/Perl6.pm
31-
# to get below working. When grammar support is more mature this
32-
# will be fixed.
32+
# to get below working. When grammar support is more mature this
33+
# will be fixed.
3334
3435
given $string {
3536
say "Integer" if /^<Int>$/;

categories/cookbook/04arrays/04-01specifying-a-list-in-your-program.pl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
use v6;
22

33
=begin pod
4-
=head1 Specifying a list in your program
4+
5+
=TITLE Specifying a list in your program
6+
7+
=AUTHOR Scott Penrose
58
69
You want to include a list in your program. This is how to initialize arrays.
710

categories/cookbook/04arrays/04-02printing-a-list-with-commas.pl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
use v6;
22

33
=begin pod
4-
=head1 Printing a list with commas
4+
5+
=TITLE Printing a list with commas
6+
7+
=AUTHOR Scott Penrose
58
69
You'd like to print out a list containing an unknown number of elements,
710
placing an "and" before the last element and commas between each element if

categories/cookbook/04arrays/04-05iterating-over-an-array.pl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
use v6;
22

33
=begin pod
4-
=head1 Iterating Over an Array
4+
5+
=TITLE Iterating Over an Array
6+
7+
=AUTHOR Scott Penrose
58
69
You want to iterate over the elements in an array
710

categories/cookbook/05hashes/05-05traversing.pl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
use v6;
22

33
=begin pod
4-
=head1 Traversing a hash
4+
5+
=TITLE Traversing a hash
6+
7+
=AUTHOR Scott Penrose
58
69
You want to perform an action on each entry (i.e., each pair) in a hash.
710

0 commit comments

Comments
 (0)