in reply to Re^3: Format, empty vars, and fixed-width records
in thread Format, empty vars, and fixed-width records

You could handle number overflow like Excel does:

sub format_num { my $s = sprintf('%5.2f', $_[0]); return length($s) > 5 ? 'XXXXX' : $s; }

Replies are listed 'Best First'.
Re^5: Format, empty vars, and fixed-width records
by BrowserUk (Patriarch) on Apr 22, 2008 at 03:32 UTC