From d6b8921298d7e29c2c19955580f537390b4d8cef Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Wed, 23 Sep 2015 13:44:31 -0600 Subject: Restrict white space inside [] inside(?[ ]) to \h This experimental construct has turned on /x processing for any interior bracketed character classes, except comments are not allowed. But, bracketed character classes have traditionally all been on one line, and I'm leery of the problems that could arise if we extend them to multiple. Therefore, restrict the white space to just spaces and tabs before this feature becomes non-experimental. If there is cause, we can later relax the prohibition. --- pod/perlrecharclass.pod | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pod/perlrecharclass.pod') diff --git a/pod/perlrecharclass.pod b/pod/perlrecharclass.pod index f46de4c801..ef8048f530 100644 --- a/pod/perlrecharclass.pod +++ b/pod/perlrecharclass.pod @@ -1051,8 +1051,9 @@ C<\N{...}>, etc.) This last example shows the use of this construct to specify an ordinary bracketed character class without additional set operations. Note the -white space within it; Cx> is turned on even within bracketed -character classes, except you can't have comments inside them. Hence, +white space within it; a limited version of Cx> is turned on even +within bracketed character classes, with only the SPACE and TAB (C<\t>) +characters allowed, and no comments. Hence, (?[ [#] ]) -- cgit v1.2.1