summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-03-04 19:33:31 +0100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-03-04 19:33:31 +0100
commitf92e1a16ee2379315520131bbe3465eb837abfa3 (patch)
treeaeda5a6b2ab7b0a85d973673f08b8f337b07f223 /op.c
parente74f3fd4b4b664f9ec8b6d9693d6a13bb6e50c49 (diff)
downloadperl-f92e1a16ee2379315520131bbe3465eb837abfa3.tar.gz
Make // behave like || in when clauses
(plus minor documentation updates about "when")
Diffstat (limited to 'op.c')
-rw-r--r--op.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/op.c b/op.c
index 5103efb215..943837e5e2 100644
--- a/op.c
+++ b/op.c
@@ -5183,6 +5183,7 @@ S_looks_like_bool(pTHX_ const OP *o)
switch(o->op_type) {
case OP_OR:
+ case OP_DOR:
return looks_like_bool(cLOGOPo->op_first);
case OP_AND:
@@ -5198,7 +5199,6 @@ S_looks_like_bool(pTHX_ const OP *o)
case OP_ENTERSUB:
case OP_NOT: case OP_XOR:
- /* Note that OP_DOR is not here */
case OP_EQ: case OP_NE: case OP_LT:
case OP_GT: case OP_LE: case OP_GE: