Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!bionet!agate!usenet.ins.cwru.edu!ncoast!allbery From: allbery@NCoast.ORG (Brandon S. Allbery KB8JRR) Newsgroups: comp.lang.perl Subject: Re: Strange behavior with require Message-ID: <1991Feb15.235507.7918@NCoast.ORG> Date: 15 Feb 91 23:55:07 GMT References: Reply-To: allbery@ncoast.ORG (Brandon S. Allbery KB8JRR) Followup-To: comp.lang.perl Distribution: comp Organization: North Coast Public Access Un*x (ncoast) Lines: 21 As quoted from by victor@arnor.uucp: +--------------- | I tracked down the source of the strange behavior: It was the -I on | the #! line. It seems that on the rt/pc bsd systems (and on AIX 3 on | rs/6000's) that any argument on the #! line is truncated to 8 | characters. But that's not all: if the argument is indeed truncated | some other horrible junk is passed to perl which causes it to become | extremeley confused. I've decided to include the line below in all my | perl scripts: +--------------- Actually, those weren't Perl error messages; they were ksh error messages. Does AIX understand #!? Or did it punt to the shell when it saw a #! line that it couldn't digest? ++Brandon -- Me: Brandon S. Allbery VHF/UHF: KB8JRR on 220, 2m, 440 Internet: allbery@NCoast.ORG Packet: KB8JRR @ WA8BXN America OnLine: KB8JRR AMPR: KB8JRR.AmPR.ORG [44.70.4.88] uunet!usenet.ins.cwru.edu!ncoast!allbery Delphi: ALLBERY