in reply to Re: Returned Code
in thread Returned Code

As others have said, the exit value is shifted within the $? variable. This is for historical reasons and compatibility with UNIX. 256 will be returned on an exit code of 1 (one). Incidently, this also means that Perl on Windows places an artificial limit of 0-255 on the exit code.

The current directory is the second place searched for executables, the first being the directory from which the calling application was loaded.