One line does it all.$commas=~ s/^(-?\d+)(\d{3})/$1,$2/;
hawk@rthawk.com
In reply to Re: Answer: How do I add commas to a number?
by Anonymous Monk
in thread How do I add commas to a number?
by vroom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |