Perhaps something like:
my $buffer; while (my $line = <$INFH>) { $line =~ s/\n$//; if ($line =~ /^CUSIP/) { print $OUTFH $buffer, "\n" if defined $buffer; $buffer = $line; } else { $buffer .= $line; } }
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: Win32::OLE and Excel Question/Help
by roboticus
in thread Win32::OLE and Excel Question/Help
by mmittiga17
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |