`/opt/bin/myprog test`; if ($? != 0){ # if successful returns a 0 print "
Error: $?
\n"; print "
ERROR!!!Program did not run correctly
"; }