summaryrefslogtreecommitdiff
path: root/fml/lib/File/CacheDir.pm
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-08-22 10:30:59 +0000
committerfukachan <fukachan>2001-08-22 10:30:59 +0000
commit557bdc42be48f195a19e00245f153254d0c593d7 (patch)
treec3792ca70d2981363e380ab0e23073ca7a34ca88 /fml/lib/File/CacheDir.pm
parent3c2ac05aa975bf9df8212e2a9e0dc49299fe4a74 (diff)
downloadfml8-557bdc42be48f195a19e00245f153254d0c593d7.tar.gz
fml8-557bdc42be48f195a19e00245f153254d0c593d7.tar.bz2
fml8-557bdc42be48f195a19e00245f153254d0c593d7.zip
modified to use File::Spec
Diffstat (limited to 'fml/lib/File/CacheDir.pm')
-rw-r--r--fml/lib/File/CacheDir.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/fml/lib/File/CacheDir.pm b/fml/lib/File/CacheDir.pm
index d375066e..65dbcea3 100644
--- a/fml/lib/File/CacheDir.pm
+++ b/fml/lib/File/CacheDir.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: CacheDir.pm,v 1.6 2001/04/15 04:58:05 fukachan Exp $
+# $FML: CacheDir.pm,v 1.7 2001/06/17 08:57:11 fukachan Exp $
#
package File::CacheDir;
@@ -250,7 +250,8 @@ sub get_latest_value
next if $_ !~ /^\d/;
next if $_ =~ /^\d{1,2}$/;
- $file = $dir .'/'. $_;
+ use File::Spec;
+ $file = File::Spec->catfile($dir, $_);
$buf = $self->_search($file, $key);
last if $buf;
}