summaryrefslogtreecommitdiff
path: root/pod/perlop.pod
diff options
context:
space:
mode:
authorPaul Johnson <paul@pjcj.net>2006-04-27 00:38:43 +0200
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-05-04 09:43:51 +0000
commited5c6d3178e1e8ac8ebd6338b381c51c4a46b187 (patch)
tree2b91c1541786d48be03d71aed7a8ce42a0862c36 /pod/perlop.pod
parent1fafdf3440acc2b1414f3a7530f0b4ae574e92f4 (diff)
downloadperl-ed5c6d3178e1e8ac8ebd6338b381c51c4a46b187.tar.gz
Document order of evaluation for the comma operator
Subject: [PATCH] Re: Kill select((select(OUTPUT_HANDLE), $| = 1)[0]); Message-ID: <20060426203843.GE21543@pjcj.net> p4raw-id: //depot/perl@28092
Diffstat (limited to 'pod/perlop.pod')
-rw-r--r--pod/perlop.pod3
1 files changed, 2 insertions, 1 deletions
diff --git a/pod/perlop.pod b/pod/perlop.pod
index 1dc62f4926..4c3d919c2e 100644
--- a/pod/perlop.pod
+++ b/pod/perlop.pod
@@ -752,7 +752,8 @@ its left argument, throws that value away, then evaluates its right
argument and returns that value. This is just like C's comma operator.
In list context, it's just the list argument separator, and inserts
-both its arguments into the list.
+both its arguments into the list. These arguments are also evaluated
+from left to right.
The C<< => >> operator is a synonym for the comma, but forces any word
(consisting entirely of word characters) to its left to be interpreted