I've embedded Perl in C. Everything goes well, except when I pass a string to eval_sv() that contains literal metacharacters, croak is being called.While I don't have an immediate solution except for doing the escaping yourself or calling a perl subroutine with the string as an argument, I'm wondering why you'd want to do this. eval_sv is equivalent to eval $string in perl. You don't want to put any random stuff in there. It's supposed to be code.
In reply to Re: embedding Perl in C / calling Perl core function from C
by Joost
in thread embedding Perl in C / calling Perl core function from C
by shigetsu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |