http://qs321.pair.com?node_id=322917


in reply to How to Trap exit code from system calls

 system() will return zero on success or nonzero on failure.

you can examine the return value in $?.

perldoc -f system is your friend. :-)