From 86cb367bf94cba58a08a81cc7a1df7e0efd2b26d Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sat, 3 May 2025 17:12:15 -0600 Subject: [PATCH] perlop: Remove extra parens in verbatim examples Statement modifiers don't need parentheses Fixes #17512 --- pod/perlop.pod | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pod/perlop.pod b/pod/perlop.pod index 0b2d144dc895..f27a32b64f5f 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -1144,11 +1144,11 @@ As a scalar operator: if (101 .. 200) { print; } # print 2nd hundred lines, short for # if ($. == 101 .. $. == 200) { print; } - next LINE if (1 .. /^$/); # skip header lines, short for - # next LINE if ($. == 1 .. /^$/); + next LINE if 1 .. /^$/; # skip header lines, short for + # next LINE if $. == 1 .. /^$/; # (typically in a loop labeled LINE) - s/^/> / if (/^$/ .. eof()); # quote body + s/^/> / if /^$/ .. eof(); # quote body # parse mail messages while (<>) {