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

How are you running it? Perl's system function, for instance, reports the exit status back in $?