Just another Perl shrine | |
PerlMonks |
Re: "Commifying" a numberby hiseldl (Priest) |
on Dec 12, 2002 at 16:49 UTC ( [id://219370]=note: print w/replies, xml ) | Need Help?? |
How about a recursive solution? ...no super-hideous while loop there, and no regex compilation either. ;-) The only downside is that this only works for integers. --
In Section
Seekers of Perl Wisdom
|
|