in reply to Answer: How do I add commas to a number?
in thread How do I add commas to a number?
One line does it all.$commas=~ s/^(-?\d+)(\d{3})/$1,$2/;
hawk@rthawk.com
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Answer: How do I add commas to a number?
by Biker (Priest) on Dec 12, 2001 at 20:49 UTC | |
|