in reply to Integer to Money format
You could consider this as an alternative to regular expressions. One disadvantage is that format_picture forces you to know the upper bound on your number's length.use warnings; use strict; use Number::Format qw(format_picture); print format_picture(4123456789, '##,##,##,##,##,##,###'), "\n"; __END__ 4,12,34,56,789
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Integer to Money format
by tilly (Archbishop) on Jan 20, 2011 at 16:05 UTC |