Allow "no Module;" even if there is no 'unimport'.
authorMark-Jason Dominus <mjd@plover.com>
Fri, 24 Mar 2000 15:24:34 +0000 (15:24 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 2 Aug 2000 22:49:16 +0000 (22:49 +0000)
Subject: [ID 20000324.029] `unimport' is not special the way `import' is
Message-Id: <20000324152434.15160.qmail@plover.com>

p4raw-id: //depot/perl@6499

gv.c

diff --git a/gv.c b/gv.c
index 02f428b..836fdb2 100644 (file)
--- a/gv.c
+++ b/gv.c
@@ -372,7 +372,7 @@ Perl_gv_fetchmethod_autoload(pTHX_ HV *stash, const char *name, I32 autoload)
 
     gv = gv_fetchmeth(stash, name, nend - name, 0);
     if (!gv) {
-       if (strEQ(name,"import"))
+       if (strEQ(name,"import") || strEQ(name,"unimport"))
            gv = (GV*)&PL_sv_yes;
        else if (autoload)
            gv = gv_autoload4(stash, name, nend - name, TRUE);