perldiag: Describe \g syntax error
authorKarl Williamson <public@khwilliamson.com>
Wed, 22 May 2013 19:28:07 +0000 (13:28 -0600)
committerKarl Williamson <public@khwilliamson.com>
Wed, 22 May 2013 19:31:06 +0000 (13:31 -0600)
Commit 779fedd7c3021f013726c8f53cb9e66c54637ebf added a warning,
which is nearly identical to an existing one, but didn't change the
description of the existing one to encompass both.  This rectifies that.

pod/perldiag.pod

index 5ceafdf..13ffbee 100644 (file)
@@ -5677,8 +5677,10 @@ instead of:
 
 =item Unterminated \g{...} pattern in regex; marked by <-- HERE in m/%s/
 
-(F) You missed a close brace on a \g{..} pattern (group reference) in
-a regular expression.  Fix the pattern and retry.
+(F) In a regular expression, you had a C<\g> that wasn't followed by a
+proper group reference.  In the case of C<\g{>, the closing brace is
+missing; otherwise the C<\g> must be followed by an integer.  Fix the
+pattern and retry.
 
 =item Unterminated <> operator