]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/blobdiff - lib/Test/Valgrind.pm
Use $Config{path_sep} whenever possible
[perl/modules/Test-Valgrind.git] / lib / Test / Valgrind.pm
index 3ea8c8fcab54fac8525df48d1e03c8c6c20e98c1..31a63234601267e148152ffd4f031ee85f68af74 100644 (file)
@@ -139,7 +139,8 @@ sub import {
   $callers = int $callers;
   my $vg = Test::Valgrind::Suppressions::VG_PATH;
   if (!$vg || !-x $vg) {
-   for (split /:/, $ENV{PATH}) {
+   require Config;
+   for (split /$Config::Config{path_sep}/, $ENV{PATH}) {
     $_ .= '/valgrind';
     if (-x) {
      $vg = $_;