From 87e95b7ff3268cc4f947098ed09d244372b3af0d Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Tue, 13 Feb 2007 23:04:54 +0100 Subject: Re: [PATCH] Document that m//k works Message-ID: <9b18b3110702131304q370f3530j463c1a59c5ac1dfe@mail.gmail.com> p4raw-id: //depot/perl@30278 --- regexp.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'regexp.h') diff --git a/regexp.h b/regexp.h index 68dd547701..c526cf98e5 100644 --- a/regexp.h +++ b/regexp.h @@ -161,9 +161,13 @@ typedef struct regexp_engine { /* chars and strings used as regex pattern modifiers * Singlular is a 'c'har, plural is a "string" + * + * NOTE, KEEPCOPY was originally 'k', but was changed to 'p' for preserve + * for compatibility reasons with Regexp::Common which highjacked (?k:...) + * for its own uses. So 'k' is out as well. */ #define EXEC_PAT_MOD 'e' -#define KEEPCOPY_PAT_MOD 'k' +#define KEEPCOPY_PAT_MOD 'p' #define ONCE_PAT_MOD 'o' #define GLOBAL_PAT_MOD 'g' #define CONTINUE_PAT_MOD 'c' @@ -173,7 +177,7 @@ typedef struct regexp_engine { #define XTENDED_PAT_MOD 'x' #define ONCE_PAT_MODS "o" -#define KEEPCOPY_PAT_MODS "k" +#define KEEPCOPY_PAT_MODS "p" #define EXEC_PAT_MODS "e" #define LOOP_PAT_MODS "gc" -- cgit v1.2.1