capturing C++ binary return status in perl

Hello,
I have a C++ binary that runs in my perl script. But, Currently, the binary is doing a core dump and i want to capture the retrun status of the binary to report as an issue.
Can you please help me on this.

Thanks,
Sateesh

no double posts! thread closed...