I have separate sub inside my project
I've thought, that it would be better and it may be possiblesub 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; } }
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; } }
In reply to Re^2: Is it possible to determine last executed command line?
by bdimych
in thread Is it possible to determine last executed command line?
by bdimych
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |