sprintf() won't do it, but you may want to take a look at perldoc perllocale to get part of the way there.
In reply to Re: sprintf() by jeffenstein in thread Formatting numbers with commas by sdyates