From 2eec1a1ed8f4ac423d53f3e0bb68e0581ea99aab Mon Sep 17 00:00:00 2001 From: Peter Prymmer Date: Wed, 7 Feb 2001 09:07:39 -0800 Subject: 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 -- cgit v1.2.1