Subject: | eval_pv() used incorrectly |
while checking CPAN for uses of eval_pv() I came across your code.
This code:
eval_pv((const char *)cnv, G_EVAL|G_KEEPERR|G_DISCARD);
seems to be expecting eval_pv() to accept flags like eval_sv() does.
eval_pv() only accepts an I32 croak_on_error that is only checked for being non-zero.
Looking at the code after that I expect the only effect is that you'd leak cnv and whatever
twepl_do_close(aTHX_ "STDOUT");
cleans up if the generated code fails to compiler or throws an error.
Tony