From: Juerd Waalboer Date: Fri, 30 Mar 2007 23:41:43 +0000 (+0200) Subject: fixed all tie-stuff by reverting a change X-Git-Tag: 3.11~1 X-Git-Url: http://git.shiar.net/perl/plp/.git/commitdiff_plain/7e6bbd1c2d57c1129f58d79e21943a26e931c0d3 fixed all tie-stuff by reverting a change Symbol.pm's delete_package doesn't delete a package in the way I thought it did. --- diff --git a/PLP.pm b/PLP.pm index 12abc1f..2df9c3b 100644 --- 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.