From f92e1a16ee2379315520131bbe3465eb837abfa3 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Wed, 4 Mar 2009 19:33:31 +0100 Subject: Make // behave like || in when clauses (plus minor documentation updates about "when") --- op.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'op.c') 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: -- cgit v1.2.1