|
If a python exception is raised then perl can catch it with the standard eval { ... } block and figure out what happened by inspecting $@. $@ will then be a reference to a Python::Err object with the following methods: $@->type $@->value $@->traceback This value also stringifies reasonably, so it can also be printed directly or tested using REs. |
|