note
jmcnamara
<p>
At a guess I'd say that the <tt>$worksheet</tt> object has been garbage collected before you try to use it in colcmp():
</p>
<code>
sub colcmp {
...
$worksheet->write_rich_string($comp_row, $col->[0], join(",", @wmap));
}
</code>
You can verify that by adding a <tt>$workbook->close()</tt> to the end of your program.
<p>
--
<br>
John.
<br>
983293
983293