env is generally fine, but note that in this case you can't pass any arguments on the shebang line, because most kernels do split/pass everything after env as one argument. For example
#!/usr/bin/env perl -w ...
would produce (on Linux)
$ ./824155.pl /usr/bin/env: perl -w: No such file or directory
In reply to Re^2: Dev Hashbang
by almut
in thread Dev Hashbang
by Xiong
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |