X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FSub-Prototype-Util.git;a=blobdiff_plain;f=t%2F11-wrap.t;h=1359de1db3d656bd035dab5fb52886c6c83b83a5;hp=d24e3204d82066f62710cb6deb995b77b256e2a0;hb=ca56c1bbdfba6214aa3ba64a8c14bd96061821ee;hpb=a96504650e684e0d70922f203272f3bed3f21258 diff --git a/t/11-wrap.t b/t/11-wrap.t index d24e320..1359de1 100644 --- a/t/11-wrap.t +++ b/t/11-wrap.t @@ -31,8 +31,8 @@ eval { wrap 'hlagh', qw }; 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;