From f78f6d13e94ec2059acb931e3ca33869aa58f1e7 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Thu, 8 May 2014 18:18:42 -0600 Subject: [PATCH] perlre: Update obsolete example /foo{4,3}/ now emits a message, contrary to what the pod claims. Use a different example that doesn't emit a message --- pod/perlre.pod | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pod/perlre.pod b/pod/perlre.pod index 64f345d..d8c9059 100644 --- a/pod/perlre.pod +++ b/pod/perlre.pod @@ -543,11 +543,10 @@ character. In particular, the lower quantifier bound is not optional, and a typo in a quantifier silently causes it to be treated as the literal characters. For example, - /o{4,3}/ + /o{4,a}/ -looks like a quantifier that matches 0 times, since 4 is greater than 3, -but it really means to match the sequence of six characters -S>. It is planned to eventually require literal uses +compiles to match the sequence of six characters +S>. It is planned to eventually require literal uses of curly brackets to be escaped, say by preceding them with a backslash or enclosing them within square brackets, (C<"\{"> or C<"[{]">). This change will allow for future syntax extensions (like making the lower -- 2.7.4