From: Craig A. Berry Date: Sat, 28 Apr 2007 16:06:01 +0000 (+0000) Subject: VMS-specific tweak to FindBin for when $0 returns a unix-style filespec. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8fc8005d410ad8042b6d15ffc54dff4894a7075f;p=p5sagit%2Fp5-mst-13.2.git VMS-specific tweak to FindBin for when $0 returns a unix-style filespec. p4raw-id: //depot/perl@31105 --- diff --git a/lib/FindBin.pm b/lib/FindBin.pm index ed5d040..e218de9 100644 --- a/lib/FindBin.pm +++ b/lib/FindBin.pm @@ -104,7 +104,7 @@ use File::Spec; %EXPORT_TAGS = (ALL => [qw($Bin $Script $RealBin $RealScript $Dir $RealDir)]); @ISA = qw(Exporter); -$VERSION = "1.48"; +$VERSION = "1.49"; # needed for VMS-specific filename translation @@ -139,7 +139,7 @@ sub init if ($^O eq 'VMS') { - ($Bin,$Script) = VMS::Filespec::rmsexpand($0) =~ /(.*[\]>]+)(.*)/s; + ($Bin,$Script) = VMS::Filespec::rmsexpand($0) =~ /(.*[\]>\/]+)(.*)/s; # C isn't going to work, so unixify first ($Bin = VMS::Filespec::unixify($Bin)) =~ s/\/\z//; ($RealBin,$RealScript) = ($Bin,$Script);