diff options
Diffstat (limited to 'pod/perlretut.pod')
-rw-r--r-- | pod/perlretut.pod | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pod/perlretut.pod b/pod/perlretut.pod index a43bea174a..71317693bd 100644 --- a/pod/perlretut.pod +++ b/pod/perlretut.pod @@ -2420,7 +2420,7 @@ containing just one word character is a palindrome. Otherwise it must have a word character up front and the same at its end, with another palindrome in between. - /(?: (\w) (?...Here be a palindrome...) \{-1} | \w? )/x + /(?: (\w) (?...Here be a palindrome...) \g{-1} | \w? )/x Adding C<\W*> at either end to eliminate what is to be ignored, we already have the full pattern: |