in reply to Formating numbers with thousand separator - Solution for web-applications
See also How can I output my numbers with commas added? from the perl FAQ which you can search with:
perldoc -q commas
In Section
Cool Uses for Perl