Thread system-Funktion: Fehler abfangen (11 answers)
Opened by galaxy at 2006-04-18 21:53

vayu
 2006-04-19 12:02
#65060 #65060
User since
2005-01-13
782 Artikel
BenutzerIn
[default_avatar]
perldoc perlvar

Quote
$? The status returned by the last pipe close, backtick (``) com-
mand, successful call to wait() or waitpid(), or from the sys-
tem() operator. This is just the 16-bit status word returned
by the wait() system call (or else is made up to look like it).
Thus, the exit value of the subprocess is really ("$? >> 8"),
and "$? & 127" gives which signal, if any, the process died
from, and "$? & 128" reports whether there was a core dump.
(Mnemonic: similar to sh and ksh.)

View full thread system-Funktion: Fehler abfangen