gszczesz has asked for the wisdom of the Perl Monks concerning the following question:
The ERRSV doesn't seem to output compilation errors in the code string.... I'm using perl5.8.9. Perl 5.10.0 had problems with ERRSV always being NULL. Gregeg, in C++: SV* result = eval_pv( code.c_str(), TRUE); if( SvTRUE(ERRSV) ) { // Print out errors }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perlapi - How to get compilation errors SV
by almut (Canon) on Apr 10, 2009 at 22:05 UTC | |
by gszczesz (Novice) on Apr 11, 2009 at 03:03 UTC |