summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Cache
diff options
context:
space:
mode:
authorfukachan <fukachan>2004-06-26 11:24:44 +0000
committerfukachan <fukachan>2004-06-26 11:24:44 +0000
commitd91fc12bf64efbbdda57fc03e241598c4100d8d8 (patch)
tree1b6a3d0bab13421c398b37f87d60d01750cbc606 /fml/lib/FML/Cache
parent632f7b7ab811338171c2c5ec6298912d2b4cb50d (diff)
downloadfml8-d91fc12bf64efbbdda57fc03e241598c4100d8d8.tar.gz
fml8-d91fc12bf64efbbdda57fc03e241598c4100d8d8.tar.bz2
fml8-d91fc12bf64efbbdda57fc03e241598c4100d8d8.zip
overhaul:
o fix comments. o defined() check.
Diffstat (limited to 'fml/lib/FML/Cache')
-rw-r--r--fml/lib/FML/Cache/Journal.pm10
1 files changed, 6 insertions, 4 deletions
diff --git a/fml/lib/FML/Cache/Journal.pm b/fml/lib/FML/Cache/Journal.pm
index 73b18990..45f4cfb5 100644
--- a/fml/lib/FML/Cache/Journal.pm
+++ b/fml/lib/FML/Cache/Journal.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: Journal.pm,v 1.3 2003/12/30 03:47:54 fukachan Exp $
+# $FML: Journal.pm,v 1.4 2003/12/31 03:49:15 fukachan Exp $
#
package FML::Cache::Journal;
@@ -14,7 +14,7 @@ use Carp;
=head1 NAME
-FML::Cache::Journal - interface into Tie::JournaledDir
+FML::Cache::Journal - interface into Tie::JournaledDir.
=head1 SYNOPSIS
@@ -45,7 +45,7 @@ sub new
}
-# Descriptions: open database by Tie::JournaledDir.
+# Descriptions: open database via Tie::JournaledDir.
# Arguments: OBJ($self) STR($cache_dir) STR($class)
# Side Effects: open database, mkdir if needed
# Return Value: HASH_REF to dabase
@@ -80,7 +80,9 @@ sub close
{
my ($self) = @_;
my $db = $self->{ _db };
- untie %$db;
+ if (defined $db) {
+ untie %$db;
+ }
}