This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
redundant RV2GVs in ck_fun()
authorStephen McCamant <smcc@mit.edu>
Mon, 20 Jul 1998 23:53:32 +0000 (18:53 -0500)
committerGurusamy Sarathy <gsar@cpan.org>
Tue, 21 Jul 1998 05:17:26 +0000 (05:17 +0000)
Message-Id: <13748.6947.311341.657005@alias-2.pr.mcs.net>

p4raw-id: //depot/perl@1606

op.c

diff --git a/op.c b/op.c
index c0454bc..b2169dc 100644 (file)
--- a/op.c
+++ b/op.c
@@ -4314,7 +4314,7 @@ ck_fun(OP *o)
                }
                break;
            case OA_FILEREF:
-               if (kid->op_type != OP_GV) {
+               if (kid->op_type != OP_GV && kid->op_type != OP_RV2GV) {
                    if (kid->op_type == OP_CONST &&
                      (kid->op_private & OPpCONST_BARE)) {
                        OP *newop = newGVOP(OP_GV, 0,