in reply to formatting numbers

See "How can I output my numbers with commas added?" in perlfaq5.