Mail Archives: djgpp/2001/03/04/01:15:54
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.
- Raw text -