Question : Perl Spreadsheet Question

Hi,

I have a column value as

EXTERNAL_CNTRPTY_ID
059105130

It is getting printed into an excel sheet as

EXTERNAL_CNTRPTY_ID
'05910513

The last zero is getting truncated and coming as quotes in the front. How to get over this problem.

I have used Excel text formatting as
my $format4 = $workbook2->add_format(num_format => '@');

and written the values in this column with that format.

How to get over this problem . Any help will be realy appreciated.

Answer : Perl Spreadsheet Question

The quotes are coming in front for 059105130?  I'd expect them (or hope for them) for 059L042M6 since it is not numeric.  Since some of the "numbers" are non-numeric, have you tried explicitly using a text format rather than numeric?  A text format should retain all characters (since it's not trying to process it as a number).
Random Solutions  
 
programming4us programming4us