Print a list of Unix error codes and descriptions such as those defined in errno.h.
perl -le 'print $!+0, "\t", $!++ for 0..127' Prints: 0 1 Operation not permitted 2 No such file or directory 3 No such process 4 Interrupted system call 5 Input/output error ...
Note that it isn't guaranteed that any given program will use these return values. On other OSes, $^E may give more relevant output than $!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: List standard Unix error codes (less output, more code)
by tye (Sage) on Jul 16, 2003 at 18:01 UTC | |
by belg4mit (Prior) on Jul 16, 2003 at 20:14 UTC | |
by gordoste (Initiate) on Jan 05, 2006 at 05:19 UTC | |
Re: List standard Unix error codes
by Abigail-II (Bishop) on Jul 16, 2003 at 20:53 UTC | |
by Anonymous Monk on Jul 16, 2003 at 21:25 UTC | |
by Abigail-II (Bishop) on Jul 16, 2003 at 22:12 UTC | |
by Anonymous Monk on May 26, 2009 at 15:18 UTC | |
Re: List standard Unix error codes
by belg4mit (Prior) on Jul 16, 2003 at 20:12 UTC |
Back to
Cool Uses for Perl