summaryrefslogtreecommitdiff
path: root/lib/FindBin.pm
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-01-17 13:22:04 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-01-17 13:22:04 +0000
commit51a19bc0654ae83130b5db1dfb665bcc81c7afd1 (patch)
treee55cce2925a2d19836570a7437871b388f571bf2 /lib/FindBin.pm
parente04b929ac38a0730124ba1af2605a41e7457eede (diff)
downloadperl-51a19bc0654ae83130b5db1dfb665bcc81c7afd1.tar.gz
various tweaks for clean build and test on win32
p4raw-id: //depot/perl@2632
Diffstat (limited to 'lib/FindBin.pm')
-rw-r--r--lib/FindBin.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/FindBin.pm b/lib/FindBin.pm
index b9aeb3640a..1a2bb22564 100644
--- a/lib/FindBin.pm
+++ b/lib/FindBin.pm
@@ -74,7 +74,7 @@ package FindBin;
use Carp;
require 5.000;
require Exporter;
-use File::Spec qw(file_name_is_absolute);
+use File::Spec;
use Cwd qw(getcwd abs_path);
use Config;
use File::Basename;
@@ -142,7 +142,7 @@ BEGIN
# Ensure $script contains the complete path incase we C<chdir>
- $script = getcwd() . "/" . $script unless file_name_is_absolute($script);
+ $script = getcwd() . "/" . $script unless File::Spec->file_name_is_absolute($script);
($Script,$Bin) = fileparse($script);
@@ -154,7 +154,7 @@ BEGIN
($RealScript,$RealBin) = fileparse($script);
last unless defined $linktext;
- $script = (file_name_is_absolute($linktext))
+ $script = (File::Spec->file_name_is_absolute($linktext))
? $linktext
: $RealBin . "/" . $linktext;
}