in reply to Writing Excel Spreadsheets -- suggestions sought

Not sure what your collecting or how the excel module works but could you not just watch for the longest string length and use that value at the end?
my $col_width = 10; #default ...#code if (length($variable) > $col_width) { my $col_width = length($variable); } #set column width

Replies are listed 'Best First'.
Re^2: Writing Excel Spreadsheets -- suggestions sought
by SuicideJunkie (Vicar) on Sep 13, 2013 at 14:24 UTC

    The trick is in determining the width of the text in pixels/"inches" rather than characters, so you can set the column width.

    However, there's an easy solution to that; set the text in that column to be a fixed-width font.