From owner-freebsd-questions Fri Sep 14 0:12: 7 2001 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-11.mail.nl.demon.net [194.159.73.21]) by hub.freebsd.org (Postfix) with ESMTP id 34AB437B406 for ; Fri, 14 Sep 2001 00:12:03 -0700 (PDT) Received: from [212.238.77.116] (helo=buffy.raggedclown.net) by post.mail.nl.demon.net with esmtp (Exim 3.22 #1) id 15hn8n-000K6O-00 for freebsd-questions@freebsd.org; Fri, 14 Sep 2001 07:11:58 +0000 Received: by buffy.raggedclown.net (Ragged Clown Mailhost, from userid 500) id DA99DB673; Fri, 14 Sep 2001 09:11:38 +0200 (CEST) Date: Fri, 14 Sep 2001 09:11:38 +0200 From: Cliff Sarginson To: freebsd-questions@freebsd.org Subject: Re: Perl #! syntax support Message-ID: <20010914091138.B12429@raggedclown.net> Mail-Followup-To: freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.16i In-Reply-To: ; from chrisquestions@hotmail.com on Fri, Sep 14, 2001 at 01:50:32AM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Sep 14, 2001 at 01:50:32AM -0500, Chris Dritsas wrote: > Good Day, > > I am writing some perl and dont want to issue 'perl ' at the > command prompt every time I wish to run my script. > > Reading Wall and Schwartz 'Progamming Perl', I find mention to my issue; "On > systems that support the #! syntax for specifying the name of an > interpreter, you can put a magical line at the front of the file so that the > operating system knows what program to interpret your file with, like this: > #!/usr/bin/perl" > > My system seems to not be supporting this syntax '#!'. My scripts run fine > when I issue 'perl ' at the command prompt. > > Any ideas how to make my system support this syntax? > It must be the very first line in the file. Have you typed the path to perl correctly ? I don't use csh/tcsh so I don't know about them (although I can hardly imagine it does not work in them) but it certainly works in sh/bash. -- Regards Cliff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message