Skip to content

Commit b9168b0

Browse files
committed
perlop: Remove extra parens in verbatim examples
Statement modifiers don't need parentheses Fixes #17512
1 parent c1c689e commit b9168b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pod/perlop.pod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,11 +1144,11 @@ As a scalar operator:
11441144
if (101 .. 200) { print; } # print 2nd hundred lines, short for
11451145
# if ($. == 101 .. $. == 200) { print; }
11461146

1147-
next LINE if (1 .. /^$/); # skip header lines, short for
1148-
# next LINE if ($. == 1 .. /^$/);
1147+
next LINE if 1 .. /^$/; # skip header lines, short for
1148+
# next LINE if $. == 1 .. /^$/;
11491149
# (typically in a loop labeled LINE)
11501150

1151-
s/^/> / if (/^$/ .. eof()); # quote body
1151+
s/^/> / if /^$/ .. eof(); # quote body
11521152

11531153
# parse mail messages
11541154
while (<>) {

0 commit comments

Comments
 (0)