ActivePerl 5.32 terminates Windows bat scripts

I recently tried out ActivePerl 5.32. I have a Windows bat script that has a pattern something like this:

perl .pl

perl .pl

perl .pl
etc.

With ActivePerl 5.32 the bat script was terminating after the first invocation of the Perl script. I backed off to ActivePerl 5.28, and this problem stopped happening.

Hi dcoup,

That’s interesting, we’ll do some quick tests here to see if we can reproduce. Any chance you can post the batch script you are testing (or at least some redacted version) to ensure we have all the details to test.

Cheers,

-JR

I just noticed that my attempt to say “my script” in angle brackets didn’t render.

Anyway, this snippet from the bat script shows what I’m trying to do:

set P4USER=Doug

set P4CLIENT=ProductName_Doug_Optiplex
p4 -z tag opened > p4_opened.txt
perl c:\users\doug\documents\tools\scripts\backup\CopyP4Files.pl ac

set P4CLIENT=ProductName_Doug_Optiplex
p4 -z tag opened > p4_opened.txt
perl c:\users\doug\documents\tools\scripts\backup\CopyP4Files.pl xb

set P4CLIENT=ProductName_Doug_Optiplex
p4 -z tag opened > p4_opened.txt
perl c:\users\doug\documents\tools\scripts\backup\CopyP4Files.pl av

set P4CLIENT=ProductName_Doug_Optiplex
p4 -z tag opened > p4_opened.txt
perl c:\users\doug\documents\tools\scripts\backup\CopyP4Files.pl at

set P4CLIENT=ProductName_Doug_Optiplex
p4 -z tag opened > p4_opened.txt
perl c:\users\doug\documents\tools\scripts\backup\CopyP4Files.pl mt

set P4CLIENT=ProductName_Doug_Optiplex
p4 -z tag opened > p4_opened.txt
perl c:\users\doug\documents\tools\scripts\backup\CopyP4Files.pl cd

p4 is a command from the code management tool Perforce. The bat script writes the names of files that are in progress in the various workspaces to the file p4_opened.txt. The in invokes the Perl script to copy them to a remote server. The argument to the Perl script indicates what remote location to use for the copied files.