X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=perl%2FPrefix.pm;h=8ea62b87fbda9e742fd0a481b925e753a9b2c65e;hb=a2c19a364c62f032cacc0766d987db9daa1f9983;hp=ba9ea2b93c1f91fa5a4530f7ba6f4025a7c6d667;hpb=d5b4190c36f130852973121042876af3c5642cd7;p=spider.git diff --git a/perl/Prefix.pm b/perl/Prefix.pm index ba9ea2b9..8ea62b87 100644 --- a/perl/Prefix.pm +++ b/perl/Prefix.pm @@ -24,6 +24,7 @@ $db = undef; # the DB_File handle sub load { if ($db) { + undef $db; untie %pre; %pre = (); %prefix_loc = (); @@ -76,7 +77,8 @@ sub store $fh->print("$str ],\n"); } $fh->print(");\n"); - $fh->close; + undef $fh; + untie %pre; } # what you get is a list that looks like:-