From: Vincent Pit Date: Sat, 24 Aug 2013 18:15:23 +0000 (-0300) Subject: Make Perl version numbers more readable X-Git-Tag: v0.11~2 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FSub-Prototype-Util.git;a=commitdiff_plain;h=ca56c1bbdfba6214aa3ba64a8c14bd96061821ee Make Perl version numbers more readable --- 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;