summaryrefslogtreecommitdiff
path: root/pod/perlrecharclass.pod
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2015-09-23 13:44:31 -0600
committerKarl Williamson <khw@cpan.org>2015-10-11 10:48:32 -0600
commitd6b8921298d7e29c2c19955580f537390b4d8cef (patch)
treee0486ffa55f38f70a2f22b7aab8074e80895808d /pod/perlrecharclass.pod
parent730480ce9e3e0103efa8f551281a62b39f573b1a (diff)
downloadperl-d6b8921298d7e29c2c19955580f537390b4d8cef.tar.gz
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.
Diffstat (limited to 'pod/perlrecharclass.pod')
-rw-r--r--pod/perlrecharclass.pod5
1 files changed, 3 insertions, 2 deletions
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; C<E<sol>x> 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 C<E<sol>x> is turned on even
+within bracketed character classes, with only the SPACE and TAB (C<\t>)
+characters allowed, and no comments. Hence,
(?[ [#] ])