Xref: utzoo comp.unix.questions:22981 comp.lang.perl:1498 Path: utzoo!attcan!uunet!ogicse!iwarp.intel.com!news From: merlyn@iwarp.intel.com (Randal Schwartz) Newsgroups: comp.unix.questions,comp.lang.perl Subject: Re: (none) Message-ID: <1990Jun15.220624.5222@iwarp.intel.com> Date: 15 Jun 90 22:06:24 GMT References: <23677@adm.BRL.MIL> Sender: news@iwarp.intel.com Reply-To: merlyn@iwarp.intel.com (Randal Schwartz) Organization: Stonehenge; netaccess via Intel, Beaverton, Oregon, USA Lines: 23 In-Reply-To: frech@mwraaa.army.mil (Norman R. Frech CPLS) In article <23677@adm.BRL.MIL>, frech@mwraaa (Norman R. Frech CPLS) writes: | Why will "perl perl.script" work on my 5000/80 System V.3 but | "perl.script" will not? I have #!/usr/bin/perl as the first line | of the perl.script but it does not help. I am running csh. Running | the command "sh perl.script" does not work either. This question might have gotten a little better response in comp.lang.perl, but since I am reading over here... Only BSD-based systems understand the #! hack. You need to put eval "exec /usr/bin/perl -S $0 $*" if $running_under_some_shell; as the first two lines of your script. This is documented in the manpage (troff page 3, but your mileage may vary). printf "%s %s %s %s%c", 'Just', 'another', 'Perl', 'hacker', 44 -- /=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\ | on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III | | merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn | \=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/