From: Peter Prymmer Date: Wed, 7 Feb 2001 17:07:39 +0000 (-0800) Subject: VMS specific simplificationfor Pod::Find X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2eec1a1ed8f4ac423d53f3e0bb68e0581ea99aab;p=p5sagit%2Fp5-mst-13.2.git VMS specific simplificationfor Pod::Find Message-Id: is equivalent to B, but also strips Perl-like extensions (.pm, .pl, .pod) and extensions like -F<.bat>, F<.cmd> on Win32 and OS/2, respectively. +F<.bat>, F<.cmd> on Win32 and OS/2, or F<.com> on VMS, respectively. =cut @@ -262,6 +262,8 @@ sub _simplify { $_[0] =~ s/\.(pod|pm|plx?)\z//i; # strip meaningless extensions on Win32 and OS/2 $_[0] =~ s/\.(bat|exe|cmd)\z//i if($^O =~ /win|os2/i); + # strip meaningless extensions on VMS + $_[0] =~ s/\.(com)\z//i if($^O eq 'VMS'); } # contribution from Tim Jenness