summaryrefslogtreecommitdiff
path: root/fml/lib/FML
diff options
context:
space:
mode:
authorfukachan <fukachan>2004-01-21 03:55:12 +0000
committerfukachan <fukachan>2004-01-21 03:55:12 +0000
commit0a34c1842eab0d20b4d5c4b6f3c90e1f6779278f (patch)
tree1e277708992d7e0184a701a1b09dfb2e53c50a19 /fml/lib/FML
parente80a508735475f5314b33a41085b01c8a6c0e0fb (diff)
downloadfml8-0a34c1842eab0d20b4d5c4b6f3c90e1f6779278f.tar.gz
fml8-0a34c1842eab0d20b4d5c4b6f3c90e1f6779278f.tar.bz2
fml8-0a34c1842eab0d20b4d5c4b6f3c90e1f6779278f.zip
fix comments.
close output channel before exits from within loop.
Diffstat (limited to 'fml/lib/FML')
-rw-r--r--fml/lib/FML/User/DB.pm9
1 files changed, 6 insertions, 3 deletions
diff --git a/fml/lib/FML/User/DB.pm b/fml/lib/FML/User/DB.pm
index a819e618..e70ede18 100644
--- a/fml/lib/FML/User/DB.pm
+++ b/fml/lib/FML/User/DB.pm
@@ -1,10 +1,10 @@
#-*- perl -*-
#
-# Copyright (C) 2003 Ken'ichi Fukamachi
+# Copyright (C) 2003,2004 Ken'ichi Fukamachi
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: DB.pm,v 1.3 2003/11/24 13:27:04 fukachan Exp $
+# $FML: DB.pm,v 1.4 2003/11/29 06:37:26 fukachan Exp $
#
package FML::User::DB;
@@ -17,6 +17,7 @@ use Carp;
# debug
$debug = 0;
+# XXX-TODO: $default_expire_period customizable ?
# 30 days
my $default_expire_period = 30*24*3600;
@@ -133,12 +134,14 @@ sub find
});
if ($value) {
if ($value =~ /^$key\s+|^$key\s*$/) {
+ $obj->close();
last MAP;
}
}
$obj->close();
}
+ # XXX-TODO: $value = "key value" ? correct ?
return $value;
}
else {
@@ -190,7 +193,7 @@ Ken'ichi Fukamachi
=head1 COPYRIGHT
-Copyright (C) 2003 Ken'ichi Fukamachi
+Copyright (C) 2003,2004 Ken'ichi Fukamachi
All rights reserved. This program is free software; you can
redistribute it and/or modify it under the same terms as Perl itself.