I originally posted a question about adding commas in the grandtotal to the wrong forum
http://www.gossamer-threads.com/...?post=163396;#163396
sorry about that!
Anyway Alex responded with the correct code snippet. The problem I am having is that I do not know where to put this?
local $_ = shift;
return 0 unless defined $_;
1 while s/^([-+]?\d+)(\d{3})/$1,$2/;
return $_;
}Any help would be appreciated.
http://www.gossamer-threads.com/...?post=163396;#163396
sorry about that!
Anyway Alex responded with the correct code snippet. The problem I am having is that I do not know where to put this?
Code:
sub commify { local $_ = shift;
return 0 unless defined $_;
1 while s/^([-+]?\d+)(\d{3})/$1,$2/;
return $_;
}