Hi Mike, On Sun, 12 Feb 2012 10:14:42 -0600 "Mike Blezien" <mick...@frontiernet.net> wrote:
> Hello, > > Need a little assistance formatting numbers pulled from a databaes. Many are > like this: > > 179550, 45960, 890458 etc. > > what I need to do is format these values with a comma so they look like this: > > 179,550, 45,960, 890,458 > > What is the easiest way to do this? > See: http://perldoc.perl.org/perlfaq5.html#How-can-I-output-my-numbers-with-commas-added%3f A CPAN search yields https://metacpan.org/module/Number::Format , but that may be an overkill for you because it provides everything except the kitchen sink. Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Understand what Open Source is - http://shlom.in/oss-fs The bad thing about hardware is that it sometimes works and it sometimes doesn’t. The good thing about software is that it’s consistent: it always does not work, and it always does not work in exactly the same way. Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/