diff --git a/cpan/version/t/07locale.t b/cpan/version/t/07locale.t index c1e1d1828c42..d0ca3edd1490 100644 --- a/cpan/version/t/07locale.t +++ b/cpan/version/t/07locale.t @@ -51,7 +51,8 @@ SKIP: { while () { chomp; $loc = setlocale( LC_NUMERIC, $_); - last if $loc && radix() eq ','; + next unless $loc; # Not on this system + last if radix() eq ','; } skip 'Cannot test locale handling without a comma locale', 6 unless $loc and radix() eq ',';