Skip to content

Commit 757ef65

Browse files
leonerdjkeenan
authored andcommitted
cpan/Scalar-List-Utils - Update to version 1.69
1.69 -- 2025-04-01 [CHANGES] * Always allow `isvstring` to be exported even on Perl 5.6, where it just returns false * Fix string comparison logic that compares versions with `$]`
1 parent 1a056e8 commit 757ef65

File tree

7 files changed

+16
-15
lines changed

7 files changed

+16
-15
lines changed

Porting/Maintainers.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,8 +1008,8 @@ package Maintainers;
10081008
},
10091009

10101010
'Scalar::Util' => {
1011-
'DISTRIBUTION' => 'PEVANS/Scalar-List-Utils-1.68.tar.gz',
1012-
'SYNCINFO' => 'rich on Sun Oct 20 15:42:58 2024',
1011+
'DISTRIBUTION' => 'PEVANS/Scalar-List-Utils-1.69.tar.gz',
1012+
'SYNCINFO' => 'jkeenan on Thu Apr 10 21:01:49 2025',
10131013
'FILES' => q[cpan/Scalar-List-Utils],
10141014
'CUSTOMIZED' => [
10151015
'ListUtil.xs',

cpan/Scalar-List-Utils/lib/Scalar/List/Utils.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package Scalar::List::Utils;
22
use strict;
33
use warnings;
44

5-
our $VERSION = "1.68";
5+
our $VERSION = "1.69";
66
$VERSION =~ tr/_//d;
77

88
1;

cpan/Scalar-List-Utils/t/isvstring.t

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@ use strict;
44
use warnings;
55

66
$|=1;
7-
use Scalar::Util ();
8-
use Test::More (grep { /isvstring/ } @Scalar::Util::EXPORT_FAIL)
9-
? (skip_all => 'isvstring is not supported on this perl version')
10-
: (tests => 3);
11-
7+
use Test::More tests => 3;;
128
use Scalar::Util qw(isvstring);
139

1410
my $vs = ord("A") == 193 ? 241.75.240 : 49.46.48;
1511

1612
ok( $vs == "1.0", 'dotted num');
17-
ok( isvstring($vs), 'isvstring');
13+
if ($] >= 5.008000) {
14+
ok( isvstring($vs), 'isvstring');
15+
}
16+
else {
17+
ok( !isvstring($vs), "isvstring is false for all values on $]");
18+
}
1819

1920
my $sv = "1.0";
2021
ok( !isvstring($sv), 'not isvstring');

cpan/Scalar-List-Utils/t/stack-corruption.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!./perl
22

33
BEGIN {
4-
if ($] eq "5.008009" or $] eq "5.010000" or $] le "5.006002") {
4+
if ("$]" == 5.008009 or "$]" == 5.010000 or "$]" <= 5.006002) {
55
print "1..0 # Skip: known to fail on $]\n";
66
exit 0;
77
}

cpan/Scalar-List-Utils/t/sum.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ SKIP: {
9898
cmp_ok($t, 'gt', 1152921504606846976, 'sum uses IV where it can'); # string comparison because Perl 5.6 does not compare it numerically correctly
9999

100100
SKIP: {
101-
skip "known to fail on $]", 1 if $] le "5.006002";
101+
skip "known to fail on $]", 1 if "$]" <= 5.006002;
102102
$t = sum(1<<60, 1);
103103
cmp_ok($t, '>', 1<<60, 'sum uses IV where it can');
104104
}

cpan/Scalar-List-Utils/t/uniq.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ is_deeply( [ uniqstr qw( 1 1.0 1E0 ) ],
4444
}
4545

4646
SKIP: {
47-
skip 'Perl 5.007003 with utf8::encode is required', 3 if $] lt "5.007003";
47+
skip 'Perl 5.007003 with utf8::encode is required', 3 if "$]" < 5.007003;
4848
my $warnings = "";
4949
local $SIG{__WARN__} = sub { $warnings .= join "", @_ };
5050

@@ -99,7 +99,7 @@ is_deeply( [ uniqint 6.1, 6.2, 6.3 ],
9999
}
100100

101101
SKIP: {
102-
skip('UVs are not reliable on this perl version', 2) unless $] ge "5.008000";
102+
skip('UVs are not reliable on this perl version', 2) unless "$]" >= 5.008000;
103103

104104
my $maxbits = $Config{ivsize} * 8 - 1;
105105

@@ -153,7 +153,7 @@ is( scalar( uniqstr qw( a b c d a b e ) ), 5, 'uniqstr() in scalar context' );
153153
}
154154

155155
SKIP: {
156-
skip('int overload requires perl version 5.8.0', 1) unless $] ge "5.008000";
156+
skip('int overload requires perl version 5.8.0', 1) unless "$]" >= 5.008000;
157157

158158
package Googol;
159159

cpan/Scalar-List-Utils/t/uniqnum.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ SKIP: {
296296
# uniqnum not confused by IV'ified floats
297297
SKIP: {
298298
# This fails on 5.6 and isn't fixable without breaking a lot of other tests
299-
skip 'This perl version gets confused by IVNV dualvars', 1 if $] lt '5.008000';
299+
skip 'This perl version gets confused by IVNV dualvars', 1 if "$]" <= 5.008000;
300300
my @nums = ( 2.1, 2.2, 2.3 );
301301
my $dummy = sprintf "%d", $_ for @nums;
302302

0 commit comments

Comments
 (0)