fixed all tie-stuff by reverting a change
authorJuerd Waalboer <juerd@cpan.org>
Fri, 30 Mar 2007 23:41:43 +0000 (01:41 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Fri, 30 Mar 2007 23:41:43 +0000 (01:41 +0200)
Symbol.pm's delete_package doesn't delete a package in the way I thought it did.

PLP.pm

diff --git a/PLP.pm b/PLP.pm
index 12abc1f9b7a4619229e6cac4a9be759db27ee514..2df9c3bbc4da114c290ca5357b8f46df3da2bf54 100644 (file)
--- a/PLP.pm
+++ b/PLP.pm
@@ -8,7 +8,6 @@ use PLP::Tie::Headers;
 use PLP::Tie::Delay;
 use PLP::Tie::Print;
 
-use Symbol ();
 #use strict;
 
 our $VERSION = '3.10';
@@ -231,8 +230,9 @@ sub start {
     }
     PLP::sendheaders() unless $PLP::sentheaders;
     select STDOUT;
-    # undef *{"PLP::Script::$_"} for keys %PLP::Script::;
-    Symbol::delete_package('PLP::Script');
+    undef *{"PLP::Script::$_"} for keys %PLP::Script::;
+#    Symbol::delete_package('PLP::Script');
+#    The above does not work. TODO - find out why not.
 }
 
 # This is run by the CGI script.