Date: Sun, 4 Mar 2001 08:13:46 +0200 (IST) From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> X-Sender: eliz AT is To: Daniel Barker <sokal AT holyrood DOT ed DOT ac DOT uk> cc: djgpp AT delorie DOT com Subject: Re: Penalty for immature language (PERL/BASH) In-Reply-To: <Pine.SOL.4.21.0103031945450.2501-100000@holyrood.ed.ac.uk> Message-ID: <Pine.SUN.3.91.1010304080956.12520D-100000@is> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sat, 3 Mar 2001, Daniel Barker wrote: > YES! There is a file called poo.pl in the same directory. It has the > following contents: > > use constant FOO => 4; > use constant BAR => 5; > > If I rename this file to something other than poo.pl, the problem goes > away. > > However, there is still a mystery. Why does this harmless program, which > sets two constants and "does nothing", cause a crash when it is called > from another PERL program? Try playing with the contents of this file and see if that matters. Also, try putting "#!/usr/local/bin/perl -f" on its first line. My suspicion is that this file is passed to DOS, which will blindly try to execute it as if it were a .com program. You should cause it to be passed to Perl instead.