Subject: | scandeps.(bat|pl) prints the legend to STDERR |
Hi,
When running scandeps.pl with the -V option on a perl file I get the
output I've attached in output.txt. As you can see the "# Legend" line
has been output in the middle of the first section of information
rather than at the end of that first section of information as intended.
Changing the line:
warn "# Legend: [C]ore [X]ternal [S]ubmodule [?]NotOnCPAN\n" if
$verbose;
to be:
print "# Legend: [C]ore [X]ternal [S]ubmodule [?]NotOnCPAN\n" if
$verbose;
fixes the problem. The reason this bug occurs is because all the other
output goes into the STDOUT stream and there's no guarantee of how the
STDOUT and STDERR streams will be merged on windows. Putting all the
output in one stream will preserve the ordering.
FYI, I'm using the following:
* Module-ScanDeps [0.70]
* perl, v5.8.4 built for MSWin32-x86-multi-thread, Binary build 810
provided by ActiveState Corp.
* Windows XP, Version 2002, Service Pack 2
Regards,
Adrian
Subject: | output.txt |
Message body is not shown because it is too large.