in reply to Problem in System function

See perldoc perlvar for $?

Basically, $exitval = $? >> 8.