use Test::More tests => 7 + 6 + 3 + 1 + 6 + 1 + (("$]" >= 5.010) ? 2 : 0) + 1;
-use Scalar::Util qw<set_prototype>;
+use Scalar::Util;
use Sub::Prototype::Util qw<wrap>;
sub exception {
like $@, exception('Optional arguments'),
'recall takes options in a key => value list';
-my $push_exp = "$]" >= 5.013007 ? '{ CORE::push($_[0], @_[1..$#_]) }'
- : '{ CORE::push(@{$_[0]}, @_[1..$#_]) }';
+my $push_exp = "$]" >= 5.013_007 ? '{ CORE::push($_[0], @_[1..$#_]) }'
+ : '{ CORE::push(@{$_[0]}, @_[1..$#_]) }';
my $push = wrap 'CORE::push', compile => 0;
is($push, 'sub ' . $push_exp, 'wrap push as a sub (default)');
$push = wrap 'CORE::push', sub => 1, compile => 0;
sub myit { my $ar = shift; push @$ar, @_; };
if ("$]" >= 5.010) {
- set_prototype \&myit, '\@$_';
+ Scalar::Util::set_prototype(\&myit, '\@$_');
my $it = wrap 'main::myit';
my @a = qw<u v w>;
local $_ = 7;