From owner-freebsd-questions Tue Apr 2 09:35:44 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA10953 for questions-outgoing; Tue, 2 Apr 1996 09:35:44 -0800 (PST) Received: from mailgate.nation-net.com (mailgate.nation-net.com [194.159.125.1]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id JAA10943 for ; Tue, 2 Apr 1996 09:35:34 -0800 (PST) Received: from www.ns.pipex.net (194.159.125.22) by mailgate.nation-net.com with SMTP (Apple Internet Mail Server 1.0); Tue, 2 Apr 1996 17:32:37 +0000 Message-ID: <31617390.2383@nation-net.com> Date: Tue, 02 Apr 1996 18:36:00 +0000 From: Paul Walsh Organization: Walsh Simmons X-Mailer: Mozilla 2.0 (Win95; I) MIME-Version: 1.0 To: Christoph Kukulies CC: Branson Matheson , freebsd-questions@FreeBSD.ORG Subject: Re: Perl scripts References: <199604021707.TAA09726@gilberto.physik.rwth-aachen.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > What is the correct way to call the interpreter in a Perl script > > > Does #!/usr/bin/perl not work ? > > > > This should most definately work... so does: > > > > #! /usr/bin/perl > > > > If it is not... try running 'sh -xv {perlscript}' and see what it > > Wrong. Running the script that way sh would try to execute the > commands in it as shell commands. The #! line would be treated as > comment. > Problem SOLVED ! I didn't have #!/usr/bin/perl on the first line ...ooops Thanks all, Paul.