((LISTOP*)right)->op_last->op_type == OP_CONST)
{
SV *sv = ((SVOP*)((LISTOP*)right)->op_last)->op_sv;
- if (SvIVX(sv) == 0)
+ if (SvIOK(sv) && SvIVX(sv) == 0)
sv_setiv(sv, PL_modcount+1);
}
}
require './test.pl';
}
-plan tests => 135;
+plan tests => 136;
$FS = ':';
is($s[2]," XYZ");
is(join(':',@s), join(':',@r));
}
+
+{
+ use constant BANG => {};
+ () = split m/,/, "", BANG;
+ ok(1);
+}