Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: perlapi - How to get compilation errors SV

by almut (Canon)
on Apr 10, 2009 at 22:05 UTC ( [id://756925]=note: print w/replies, xml ) Need Help??


in reply to perlapi - How to get compilation errors SV

Maybe you could try eval_sv instead, which (in contrast to eval_pv) allows the G_KEEPERR flag to be specified (you wouldn't get your SV result, though...).  Something like this (untested):

eval_sv(newSVpv(code.c_str(), 0), G_KEEPERR);

See also this thread and G_KEEPERR.

Replies are listed 'Best First'.
Re^2: perlapi - How to get compilation errors SV
by gszczesz (Novice) on Apr 11, 2009 at 03:03 UTC
    That did the trick. Forever in your debt. Greg

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://756925]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-24 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found