in reply to Re: Is it possible to determine last executed command line?
in thread Is it possible to determine last executed command line?
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; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Is it possible to determine last executed command line?
by apl (Monsignor) on Dec 03, 2007 at 10:55 UTC | |
by graff (Chancellor) on Dec 04, 2007 at 00:42 UTC | |
by ikegami (Patriarch) on Dec 04, 2007 at 01:38 UTC | |
by sgifford (Prior) on Dec 04, 2007 at 06:21 UTC |