]> git.vpit.fr Git - perl/modules/Sub-Prototype-Util.git/blobdiff - samples/try.pl
Make compile => 1 the default for wrap()
[perl/modules/Sub-Prototype-Util.git] / samples / try.pl
index 250ff60aeba64d4bd332ef6656dcc303cd81d060..57477fe9c493c711b1885233e13cacb9bca0d89f 100755 (executable)
@@ -22,7 +22,7 @@ print "When flatten with prototype $proto, this gives :\n", Dumper(\@flat);
 recall 'CORE::push', @args; # @a contains 'a', 'b', 'c', 1, { d => 2 }, undef, 3
 print "After recalling CORE::push with \@args, \@a contains :\n", Dumper(\@a);
 
-my $splice = wrap 'CORE::splice', compile => 1;
+my $splice = wrap 'CORE::splice';
 my @b = $splice->(\@a, 4, 2);
 print "After calling wrapped splice with \@a, it contains :\n", Dumper(\@a);
 print "What was returned :\n", Dumper(\@b);