Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!uwm.edu!linac!att!ucbvax!iwarp.intel.com!news From: merlyn@iwarp.intel.com (Randal L. Schwartz) Newsgroups: comp.lang.perl Subject: Re: Starting a perl script Message-ID: <1991Mar21.175643.21515@iwarp.intel.com> Date: 21 Mar 91 17:56:43 GMT Article-I.D.: iwarp.1991Mar21.175643.21515 References: <224@willow.MV.COM> Sender: news@iwarp.intel.com Reply-To: merlyn@iwarp.intel.com (Randal L. Schwartz) Organization: Stonehenge; netaccess via Intel, Beaverton, Oregon, USA Lines: 24 In-Reply-To: shawn@willow.MV.COM (Shawn M. Rogers) In article <224@willow.MV.COM>, shawn@willow (Shawn M. Rogers) writes: | According to the nutshell handbook on perl, a way around this is | by replacing the "#!" line with the following: | | eval '/usr/bin/perl -S $0 ${1+"$@"}' | if 0; | [perl script here....] Missing an "exec" in there. It's wrong on page 5, although it's correct on page 216. Try: eval 'exec /usr/bin/perl -S $0 ${1+"$@"}' if 0; [perl script here....] The typo is already noted on the Perl 4.0 manpage. (Read the *fine* manpage. :-) @a = (Just,another,Perl,"hacker,"); print "@a"; -- /=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: "Intel: putting the 'backward' in 'backward compatible'..."====/