in reply to adding comma's... formatting numbers

The common term is "commify". There's quite a bit of code floating around, as it's a less trivial problem than would appear to be at first. There's even a couple of snippets in perlfaq5: How can I output my numbers with commas added?.
  • Comment on Re: adding comma's... formatting numbers