X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FSub-Prototype-Util.git;a=blobdiff_plain;f=t%2F11-wrap.t;h=d24e3204d82066f62710cb6deb995b77b256e2a0;hp=a8fbb600be01e20dd0cd78cdd1bd63135e5144ef;hb=4a302d06092850955b3c6de15940b89b207f1c54;hpb=cb4330ca38fd217d3886ea0fb161e5cc3ccdfd2c diff --git a/t/11-wrap.t b/t/11-wrap.t index a8fbb60..d24e320 100644 --- a/t/11-wrap.t +++ b/t/11-wrap.t @@ -5,7 +5,7 @@ use warnings; use Test::More tests => 7 + 6 + 3 + 1 + 6 + 1 + (("$]" >= 5.010) ? 2 : 0) + 1; -use Scalar::Util qw; +use Scalar::Util; use Sub::Prototype::Util qw; sub exception { @@ -130,7 +130,7 @@ is($noproto, $noproto_exp, 'no prototype'); 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; local $_ = 7;