Was that a homework question? It looks a bit contrived to do it as a regular expression, when there alternative ways of inserting commas every three digits. For example:
join(',', '4123456789' =~ m/.{3}/g )
In reply to Re: Integer to Money format
by chrestomanci
in thread Integer to Money format
by vinoth.ree
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |