Also catfile() needs now to explicitly exported.
Jarkko Hietaniemi [Tue, 26 Jun 2001 14:08:34 +0000 (14:08 +0000)]
p4raw-id: //depot/perl@10966

lib/Memoize/t/tie.t
lib/Memoize/t/tie_sdbm.t

index c7083c5..9b9cd4f 100755 (executable)
@@ -24,7 +24,7 @@ sub n {
 }
 
 if (eval {require File::Spec::Functions}) {
-  File::Spec::Functions->import('tmpdir');
+  File::Spec::Functions->import(qw(catfile tmpdir));
   $tmpdir = tmpdir();
 } else {
   *catfile = sub { join '/', @_ };
index 51bd403..44e7d76 100644 (file)
@@ -29,7 +29,7 @@ if ($@) {
 print "1..4\n";
 
 if (eval {require File::Spec::Functions}) {
- File::Spec::Functions->import('tmpdir');
+ File::Spec::Functions->import(qw(catfile tmpdir));
  $tmpdir = tmpdir();
 } else {
  *catfile = sub { join '/', @_ };