From: Michael Witten Date: Tue, 7 Apr 2009 19:59:19 +0000 (-0500) Subject: Docs: Typo: \{-1} -> \g{-1} X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fd2b7f5590d4687733156a2ab08ebef34d5ca503;p=p5sagit%2Fp5-mst-13.2.git Docs: Typo: \{-1} -> \g{-1} Signed-off-by: Michael Witten --- diff --git a/pod/perlretut.pod b/pod/perlretut.pod index a43bea1..7131769 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: