In brief
I have separate sub inside my project
sub retcode_full_test {
# code taken from perldoc -f system
if ($? == -1) {
G::abend("failed to execute: $!");
}
elsif ($? & 127) {
G::abend(sprintf("child died with signal %d, %s coredump", ($?
+ & 127), ($? & 128) ? 'with' : 'without'));
}
else {
return $? >> 8;
}
}
I've thought, that it would be better and it may be possible
sub retcode_full_test {
# code taken from perldoc -f system
if ($? == -1) {
G::abend("failed to execute $?????: $!");
}
elsif ($? & 127) {
G::abend(sprintf("$????? died with signal %d, %s coredump", ($
+? & 127), ($? & 128) ? 'with' : 'without'));
}
else {
return $? >> 8;
}
}