This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use the perl.org news gw instead of the perl.com one
[perl5.git] / scope.c
diff --git a/scope.c b/scope.c
index da5fa6b..7c02951 100644 (file)
--- a/scope.c
+++ b/scope.c
@@ -827,9 +827,8 @@ Perl_leave_scope(pTHX_ I32 base)
                 * if a my variable that was made readonly is going out of
                 * scope, we want to remove the readonlyness so that it can
                 * go out of scope quietly
-                * Disabled as I don't see need yet NI-S 2001/12/18
                 */
-               if (0 && SvPADMY(sv) && ! SvFAKE(sv))
+               if (SvPADMY(sv) && !SvFAKE(sv))
                    SvREADONLY_off(sv);
 
                if (SvTHINKFIRST(sv))