From: Gurusamy Sarathy Date: Sat, 14 Nov 1998 00:17:05 +0000 (+0000) Subject: catch a neophyte trap: open(), close() etc. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1ea32a52e8d97ef8652b5b381490ba3ad31fe6fc;p=p5sagit%2Fp5-mst-13.2.git catch a neophyte trap: open(), close() etc. p4raw-id: //depot/perl@2235 --- diff --git a/op.c b/op.c index 75c7d9f..e52aa4f 100644 --- a/op.c +++ b/op.c @@ -4680,6 +4680,10 @@ ck_fun(OP *o) op_free(kid); kid = newop; } + else if (kid->op_type == OP_READLINE) { + /* neophyte patrol: open(), close() etc. */ + bad_type(numargs, "HANDLE", PL_op_desc[o->op_type], kid); + } else { kid->op_sibling = 0; kid = newUNOP(OP_RV2GV, 0, scalar(kid));