Subject: | [Patch] Make Test::Compile work on Windows. |
Date: | Thu, 16 Apr 2009 08:39:12 -0500 |
To: | bug-test-compile [...] rt.cpan.org |
From: | Elliot Shank <perl [...] galumph.com> |
Patch is against v0.08.
=== modified file 'lib/Test/Compile.pm'
--- lib/Test/Compile.pm 2009-04-16 13:32:57 +0000
+++ lib/Test/Compile.pm 2009-04-16 13:34:45 +0000
@@ -42,8 +42,8 @@
}
my $module = $file;
- $module =~ s!^(blib/)?lib/!!;
- $module =~ s!/!::!g;
+ $module =~ s!^(blib[/\\])?lib[/\\]!!;
+ $module =~ s![/\\]!::!g;
$module =~ s/\.pm$//;
my $ok = 1;