]> git.vpit.fr Git - perl/modules/Sub-Prototype-Util.git/commitdiff
Make Perl version numbers more readable
authorVincent Pit <vince@profvince.com>
Sat, 24 Aug 2013 18:15:23 +0000 (15:15 -0300)
committerVincent Pit <vince@profvince.com>
Sat, 24 Aug 2013 18:15:23 +0000 (15:15 -0300)
t/11-wrap.t

index d24e3204d82066f62710cb6deb995b77b256e2a0..1359de1db3d656bd035dab5fb52886c6c83b83a5 100644 (file)
@@ -31,8 +31,8 @@ eval { wrap 'hlagh', qw<a b c> };
 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;