summaryrefslogtreecommitdiff
path: root/fml/lib/File
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-04-14 11:20:56 +0000
committerfukachan <fukachan>2001-04-14 11:20:56 +0000
commit51641fb539ad0b4a2533c80e47807eb68479cd72 (patch)
tree3acfaf521c99dadf6bd5ca97e93d94c8271f2746 /fml/lib/File
parente166c55a8994c725d1a26004e6d7c9d4b228d743 (diff)
downloadfml8-51641fb539ad0b4a2533c80e47807eb68479cd72.tar.gz
fml8-51641fb539ad0b4a2533c80e47807eb68479cd72.tar.bz2
fml8-51641fb539ad0b4a2533c80e47807eb68479cd72.zip
find() is an alias of get()
Diffstat (limited to 'fml/lib/File')
-rw-r--r--fml/lib/File/CacheDir.pm11
1 files changed, 10 insertions, 1 deletions
diff --git a/fml/lib/File/CacheDir.pm b/fml/lib/File/CacheDir.pm
index cf461e84..c1a34d0d 100644
--- a/fml/lib/File/CacheDir.pm
+++ b/fml/lib/File/CacheDir.pm
@@ -5,7 +5,7 @@
# redistribute it and/or modify it under the same terms as Perl itself.
#
# $Id$
-# $FML: CacheDir.pm,v 1.2 2001/04/04 12:21:19 fukachan Exp $
+# $FML: CacheDir.pm,v 1.3 2001/04/04 14:47:55 fukachan Exp $
#
package File::CacheDir;
@@ -201,6 +201,8 @@ sub close
+=head2 C<find(key)>
+
=head2 C<get(key)>
=head2 C<set(key, value)>
@@ -270,6 +272,13 @@ sub _search
}
+sub find
+{
+ my ($self, $key) = @_;
+ $self->get($key);
+}
+
+
sub set
{
my ($self, $key, $value) = @_;