Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!bywater!arnor!arnor!victor From: victor@arnor.uucp Newsgroups: comp.lang.perl Subject: Strange behavior with require Message-ID: Date: 11 Feb 91 19:48:12 GMT Sender: news@arnor.uucp (NNTP News Poster) Reply-To: victor@ibm.com Distribution: comp Organization: IBM, T.J. Watson Research Center Lines: 39 Last week I built perl 3 patch level 44 for the two sets of workstations that we have here: Sun 4's and IBM RT/PC's running bsd 4.3. Both built just fine, and passed all tests. Just today I decided to try the Date subroutines and calculator. On the Sun's it worked just fine (we have shared file systems under NFS). But on the RT's I get the following output when I run dtc: dtc[3]: require: not found dtc[5]: =: not found Date Calculator version 1.0 dtc[7]: h for help)\n": not found (type > dtc[8]: syntax error at line 10 : `)' unexpected Strangely enough, I can successfully run other scripts having require. In fact if I change the require to include, the same behavior ensues. If I comment it out, things start running ok, but, of course, the subroutines in the require'd file aren't found. For sake of reference, the beginning of dtc is: #!/usr/local/bin/perl -I/homes/irt/victor/perl require 'date.pl'; $command = ''; print " Date Calculator version 1.0\n"; print " (type `h' for help)\n"; print "> "; Does anybody have a clue as to what could be wrong? -- Victor S. Miller Vnet and Bitnet: VICTOR at WATSON Internet: victor@ibm.com IBM, TJ Watson Research Center