X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F18-opinfo.t;h=70b5f746dfd731f8e9418e1202e6f3aebff73b2d;hb=9ad970e109ea4caa9767db1bda9d475444920c7a;hp=161efb9c9a90cec02fa2b47c92971ced3cc039fd;hpb=3bc98bdbdb230943e7fb3135e325f10013acac2d;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/18-opinfo.t b/t/18-opinfo.t index 161efb9..70b5f74 100644 --- a/t/18-opinfo.t +++ b/t/18-opinfo.t @@ -11,12 +11,13 @@ use Variable::Magic qw; sub Variable::Magic::TestPkg::foo { } -my $is_5130_release = ($] == 5.013 && !$Config{git_describe}) ? 1 : 0; +my $is_5130_release = ("$]" == 5.013 && !$Config{git_describe}) ? 1 : 0; -my $aelem = $] <= 5.008003 ? 'aelem' - : ($] < 5.013 or $is_5130_release) ? 'aelemfast' - : 'sassign'; -my $aelemf = ($] < 5.013 or $is_5130_release) ? 'aelemfast' : 'sassign'; +my $aelem = "$]" <= 5.008_003 ? 'aelem' + : ("$]" < 5.013 or $is_5130_release) + ? 'aelemfast' + : 'sassign'; +my $aelemf = ("$]" < 5.013 or $is_5130_release) ? 'aelemfast' : 'sassign'; my $aelemf_op = $aelemf eq 'sassign' ? 'B::BINOP' : $Config{useithreads} ? 'B::PADOP' : 'B::SVOP';