in reply to system return -1
if ($rv == -1) { print "failed to execute: $!\n"; } ...
(The code example actually checks $?, which will have the same value as what system returns.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: system return -1
by Anonymous Monk on Oct 25, 2010 at 10:53 UTC | |
by ikegami (Patriarch) on Oct 25, 2010 at 14:23 UTC |