The GNU APL manual says:
APL is script-able; a text file whose first line looks like this
(assuming the APL interpreter binary is called apl and can be
found in the shell’s PATH):
#! apl
or (if the APL interpreter binary is /mypath/apl but not
necessarily in the shell’s PATH):
#! /mypath/apl
In fact the "#! apl" version will not work on most systems.
The "#!" mechanism doesn't pay attention to $PATH, so you have to
specify the full path to the interpreter.
A common workaround is:
#!/usr/bin/env apl
I've discussed the pros and cons of that idiom here:
http://unix.stackexchange.com/a/29620/10454
--
Keith Thompson <[email protected]>