projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
*** empty log message ***
[spider.git]
/
perl
/
Prefix.pm
diff --git
a/perl/Prefix.pm
b/perl/Prefix.pm
index ba9ea2b93c1f91fa5a4530f7ba6f4025a7c6d667..8ea62b87fbda9e742fd0a481b925e753a9b2c65e 100644
(file)
--- 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:-