},
'Scalar-List-Utils' => {
- 'DISTRIBUTION' => 'PEVANS/Scalar-List-Utils-1.40.tar.gz',
+ 'DISTRIBUTION' => 'PEVANS/Scalar-List-Utils-1.41.tar.gz',
'FILES' => q[cpan/Scalar-List-Utils],
},
SAVESPTR(GvSV(agv));
SAVESPTR(GvSV(bgv));
GvSV(agv) = ret;
- SvSetSV(ret, args[1]);
+ SvSetMagicSV(ret, args[1]);
#ifdef dMULTICALL
if(!CvISXSUB(cv)) {
dMULTICALL;
for(index = 2 ; index < items ; index++) {
GvSV(bgv) = args[index];
MULTICALL;
- SvSetSV(ret, *PL_stack_sp);
+ SvSetMagicSV(ret, *PL_stack_sp);
}
# ifdef PERL_HAS_BAD_MULTICALL_REFCOUNT
if(CvDEPTH(multicall_cv) > 1)
PUSHMARK(SP);
call_sv((SV*)cv, G_SCALAR);
- SvSetSV(ret, *PL_stack_sp);
+ SvSetMagicSV(ret, *PL_stack_sp);
}
}
if (PL_DBsub && CvGV(cv)) {
HV *hv = GvHV(PL_DBsub);
- char* new_pkg = HvNAME(stash);
+ char *new_pkg = HvNAME(stash);
- char* old_name = GvNAME( CvGV(cv) );
- char* old_pkg = HvNAME( GvSTASH(CvGV(cv)) );
+ char *old_name = GvNAME( CvGV(cv) );
+ char *old_pkg = HvNAME( GvSTASH(CvGV(cv)) );
int old_len = strlen(old_name) + strlen(old_pkg);
int new_len = strlen(name) + strlen(new_pkg);
- SV** old_data;
- char* full_name;
+ SV **old_data;
+ char *full_name;
+
Newxz(full_name, (old_len > new_len ? old_len : new_len) + 3, char);
strcat(full_name, old_pkg);
all any first min max minstr maxstr none notall product reduce sum sum0 shuffle
pairmap pairgrep pairfirst pairs pairkeys pairvalues
);
-our $VERSION = "1.40";
+our $VERSION = "1.41";
our $XS_VERSION = $VERSION;
$VERSION = eval $VERSION;
use strict;
use List::Util;
-our $VERSION = "1.40"; # FIXUP
+our $VERSION = "1.41"; # FIXUP
$VERSION = eval $VERSION; # FIXUP
1;
dualvar isdual isvstring looks_like_number openhandle readonly set_prototype
tainted
);
-our $VERSION = "1.40";
+our $VERSION = "1.41";
$VERSION = eval $VERSION;
our @EXPORT_FAIL;
subname set_subname
);
-our $VERSION = "1.40";
+our $VERSION = "1.41";
$VERSION = eval $VERSION;
=head1 NAME
=head1 SYNOPSIS
- use Sub::Util qw( set_prototype subname set_subname );
+ use Sub::Util qw( prototype set_prototype subname set_subname );
=head1 DESCRIPTION
my $proto = prototype( $code )
+I<Since version 1.40.>
+
Returns the prototype of the given C<$code> reference, if it has one, as a
string. This is the same as the C<CORE::prototype> operator; it is included
here simply for symmetry and completeness with the other functions.
use List::Util qw(reduce min);
use Test::More;
-plan tests => 29 + ($::PERL_ONLY ? 0 : 2);
+plan tests => 30 + ($::PERL_ONLY ? 0 : 2);
my $v = reduce {};
eval { &reduce(+{},1,2,3) };
ok($@ =~ /^Not a subroutine reference/, 'check for code reference');
+my @names = ("a\x{100}c", "d\x{101}efgh", 'ijk');
+my $longest = reduce { length($a) > length($b) ? $a : $b } @names;
+is( length($longest), 6, 'missing SMG rt#121992');
=item *
+Scalar-List-Utils has been upgraded from version 1.40 to 1.41.
+
+=item *
+
L<constant> has been upgraded from version 1.31 to 1.32.
It now accepts fully-qualified constant names, allowing constants to be