Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!bywater!arnor!arnor!victor From: victor@arnor.uucp Newsgroups: comp.lang.perl Subject: Re: Strange behavior with require Message-ID: Date: 11 Feb 91 21:47:56 GMT References: Sender: news@arnor.uucp (NNTP News Poster) Reply-To: victor@ibm.com Distribution: comp Organization: IBM, T.J. Watson Research Center Lines: 17 In-Reply-To: victor@arnor.uucp's message of 11 Feb 91 14:48:12 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: @INC = split(/:/,$ENV{'PERLINCLUDE'}) if defined $ENV{'PERLINCLUDE'}; and then set the environment variable PERLINCLUDE to be a path list for my include files. Does anyone have any other suggestions? -- Victor S. Miller Vnet and Bitnet: VICTOR at WATSON Internet: victor@ibm.com IBM, TJ Watson Research Center