in reply to Shebang to a perl program

I don't know about all Unices but at least on Linux (and it looks on BSD too) you cannot use scripts in shebang line. Only programs in native executable formats which are understood by kernel can be used there.

As workaround you can try to use

#!/path/to/perl /path/to/interpreter.pl
as shebang. Another approach is writing small wrapper in C which launches your Perl program and using this wrapper in shebang.

--
Ilya Martynov, ilya@iponweb.net
CTO IPonWEB (UK) Ltd
Quality Perl Programming and Unix Support UK managed @ offshore prices - http://www.iponweb.net
Personal website - http://martynov.org