Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
How I can get system-function executed program return value if it is negative? Is it possible at all? I noticed that only values 0..255 are possible to get, negative was always 255. So it looks like system-function handles values only as unsigned int. What is other simple way as system-function to execute external program and get correct return value (-n..+n)? I use script on W2k cmdprompt. Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to get system -function negative return value?
by Abigail-II (Bishop) on May 27, 2004 at 09:14 UTC | |
|
Re: How to get system -function negative return value?
by Happy-the-monk (Canon) on May 27, 2004 at 08:18 UTC | |
by Anonymous Monk on May 27, 2004 at 09:22 UTC | |
by Abigail-II (Bishop) on May 27, 2004 at 09:42 UTC | |
|
Re: How to get system -function negative return value?
by dfaure (Chaplain) on May 27, 2004 at 09:17 UTC | |
by Anonymous Monk on May 27, 2004 at 10:52 UTC |