Skip to content

Commit f79aaa5

Browse files
committed
[cookbook] move code comments into pod
1 parent f53afbe commit f79aaa5

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

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

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,22 @@
88
99
You want to check if a string is a valid number.
1010
11-
# Most of the time you will not need to do this. Rather then testing
12-
# for a scalar's numerical nature you can ensure that the variable
13-
# contains a number by setting its type. Assigning a number to
14-
# that variable will cause it to be coerced into an integer or a
15-
# number.
11+
Most of the time you will not need to do this. Rather then testing for a
12+
scalar's numerical nature you can ensure that the variable contains a number
13+
by setting its type. Assigning a number to that variable will cause it to
14+
be coerced into an integer or a number.
1615
17-
# Ensure that a variable is used to store a real number.
16+
Ensure that a variable is used to store a real number.
1817
1918
my Num $number;
2019
21-
# Ensure that a variable is used to store an integer.
20+
Ensure that a variable is used to store an integer.
2221
2322
my Int $integer;
2423
25-
# Sometimes you need to validate a string from some source
26-
# corresponds to a real or an integer. In this situation compare
27-
# it against the rule for integers or reals.
24+
Sometimes you need to validate a string from some source corresponds to a
25+
real or an integer. In this situation compare it against the rule for
26+
integers or reals.
2827
2928
=end pod
3029

0 commit comments

Comments
 (0)