in reply to Re: Numbers with commas
in thread Numbers with commas
How can I output my numbers with commas added? This one will do it for you: sub commify { local $_ = shift; 1 while s/^([-+]?\d+)(\d{3})/$1,$2/; return $_; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Numbers with commas
by tachyon (Chancellor) on May 13, 2004 at 02:10 UTC | |
by TilRMan (Friar) on May 13, 2004 at 06:12 UTC |