a similar error can be generated by the shell
Those errors are typically along the lines of "Command not found", because the kernel does interpret the shebang line, but then doesn't find a perl binary ".../perl\r" (it's not the shell that interprets the shebang line — otherwise, how could you call a script via the exec* family of system calls, where no shell is involved?). In the case of the OP, the shebang line doesn't seem to be recognized at all, so the system defaults to using the shell to interpret the script.
In reply to Re^2: Execution error
by almut
in thread Execution error
by raju_400
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |