diff options
author | Yves Orton <demerphq@gmail.com> | 2007-02-13 23:04:54 +0100 |
---|---|---|
committer | H.Merijn Brand <h.m.brand@xs4all.nl> | 2007-02-14 07:54:59 +0000 |
commit | 87e95b7ff3268cc4f947098ed09d244372b3af0d (patch) | |
tree | 558694850b849d198a69d4f0111e9706388c2d9f /regexp.h | |
parent | ee03edd30dac4a70bf2d56895e9bf4dd1243abc8 (diff) | |
download | perl-87e95b7ff3268cc4f947098ed09d244372b3af0d.tar.gz |
Re: [PATCH] Document that m//k works
Message-ID: <9b18b3110702131304q370f3530j463c1a59c5ac1dfe@mail.gmail.com>
p4raw-id: //depot/perl@30278
Diffstat (limited to 'regexp.h')
-rw-r--r-- | regexp.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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" |