http://qs321.pair.com?node_id=570591


in reply to Executing a external command

In your code, $cmd is the return value of your system call.

From system:

The return value is the exit status of the program as returned by the wait call. To get the actual exit value, shift right by eight.
so if '65280' is returned, the actual value is 255 (== 65280 >> 8). Check your OS's documentation about that error number.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}