I have a Perl script that uses some C++ library which is probably wrapped using xs.
When the library throws an exception it crashes my Perl script even when called from inside eval
.
How can I skip the exception and prevent my script from crashing?
terminate called after throwing an instance of 'blaException'
what(): blablabla.cpp:202: Failed to bla
Abort trap: 6 (core dumped)
Perl version is v5.12.4