]> git.vpit.fr Git - perl/modules/Sub-Prototype-Util.git/blobdiff - t/11-wrap.t
Don't import Scalar::Util::set_prototype()
[perl/modules/Sub-Prototype-Util.git] / t / 11-wrap.t
index a8fbb600be01e20dd0cd78cdd1bd63135e5144ef..d24e3204d82066f62710cb6deb995b77b256e2a0 100644 (file)
@@ -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<set_prototype>;
+use Scalar::Util;
 use Sub::Prototype::Util qw<wrap>;
 
 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<u v w>;
  local $_ = 7;