in reply to How to Trap exit code from system calls
you can examine the return value in $?.
perldoc -f system is your friend. :-)