John E. Malmberg [Mon, 27 Apr 2009 02:00:25 +0000 (21:00 -0500)]
The VMS pipe bug inserts blank lines in places that can prevent the
leader from being seen.
So on the leader line, read in the rest of the line.
my %todo;
while (<RESULTS>) {
next if /^\s*$/; # skip blank lines
+ if (/^1..$/ && ($^O eq 'VMS')) {
+ # VMS pipe bug inserts blank lines.
+ my $l2 = <RESULTS>;
+ if ($l2 =~ /^\s*$/) {
+ $l2 = <RESULTS>;
+ }
+ $_ = '1..' . $l2;
+ }
if ($::verbose) {
print $_;
}