summaryrefslogtreecommitdiff
path: root/pod/perlrecharclass.pod
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2015-02-25 23:19:39 -0700
committerKarl Williamson <khw@cpan.org>2015-03-19 21:10:03 -0600
commit6798c95dd27b33efd71f394c18649af7bbaf42b7 (patch)
treeb8ac326854bc4865f83453c91b768bc30f110391 /pod/perlrecharclass.pod
parent9269c59f17a7bb8e6d97c55ab987b934cfb48034 (diff)
downloadperl-6798c95dd27b33efd71f394c18649af7bbaf42b7.tar.gz
Change /(?[...]) to have normal operator precedence
This experimental feature now has the intersection operator ("&") higher precedence than the other binary operators.
Diffstat (limited to 'pod/perlrecharclass.pod')
-rw-r--r--pod/perlrecharclass.pod13
1 files changed, 5 insertions, 8 deletions
diff --git a/pod/perlrecharclass.pod b/pod/perlrecharclass.pod
index 84a9226451..20a439ac36 100644
--- a/pod/perlrecharclass.pod
+++ b/pod/perlrecharclass.pod
@@ -1025,14 +1025,11 @@ There is one unary operator:
! complement
-All the binary operators left associate, and are of equal precedence.
-The unary operator right associates, and has higher precedence. Use
-parentheses to override the default associations. Some feedback we've
-received indicates a desire for intersection to have higher precedence
-than union. This is something that feedback from the field may cause us
-to change in future releases; you may want to parenthesize copiously to
-avoid such changes affecting your code, until this feature is no longer
-considered experimental.
+All the binary operators left associate; C<"&"> is higher precedence
+than the others, which all have equal precedence. The unary operator
+right associates, and has highest precedence. Thus this follows the
+normal Perl precedence rules for logical operators. Use parentheses to
+override the default precedence and associativity.
The main restriction is that everything is a metacharacter. Thus,
you cannot refer to single characters by doing something like this: