diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-01-17 13:22:04 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-01-17 13:22:04 +0000 |
commit | 51a19bc0654ae83130b5db1dfb665bcc81c7afd1 (patch) | |
tree | e55cce2925a2d19836570a7437871b388f571bf2 /lib/FindBin.pm | |
parent | e04b929ac38a0730124ba1af2605a41e7457eede (diff) | |
download | perl-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.pm | 6 |
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; } |