fix typo in pp_defined() causing C<defined %tied> to fail
Gurusamy Sarathy [Sat, 28 Nov 1998 13:07:17 +0000 (13:07 +0000)]
p4raw-id: //depot/perl@2345

pp.c

diff --git a/pp.c b/pp.c
index 07b83db..7b7eb67 100644 (file)
--- a/pp.c
+++ b/pp.c
@@ -727,11 +727,11 @@ PP(pp_defined)
        RETPUSHNO;
     switch (SvTYPE(sv)) {
     case SVt_PVAV:
-       if (AvMAX(sv) >= 0 || SvGMAGICAL(sv))
+       if (AvMAX(sv) >= 0 || SvRMAGICAL(sv))
            RETPUSHYES;
        break;
     case SVt_PVHV:
-       if (HvARRAY(sv) || SvGMAGICAL(sv))
+       if (HvARRAY(sv) || SvRMAGICAL(sv))
            RETPUSHYES;
        break;
     case SVt_PVCV: