LA.pm: Perl is money

Arkadiy Sudarikov asudarikov at xceed.com
Wed Oct 24 16:59:25 CDT 2001


Yeah. Yes. I *DO* have a (printed) copy. Actually, Sammy, e-books?

-----Original Message-----
From: Mike Henderson [mailto:mike at easterninformatics.com]
Sent: Wednesday, October 24, 2001 2:14 PM
To: Arkadiy Sudarikov; 'list at la.pm.org'
Subject: Re: LA.pm: Perl is money


The _Perl Cookbook_ (you *do* have a copy, right? ;^)
)lists a "commify" routine in Section 2.17 that
implements this neatly with a regex.

--- Arkadiy Sudarikov <asudarikov at xceed.com> wrote:
> Hi. Does anyone have a sprintf (regex?) string that
> formats money amounts?
> 
> Like, it takes a number (float) and reformats it,
> maybe even placing decimal
> comma every three digits from the right and pads and
> approximates cents,
> making it a string...
> 
> Thanks, ya all,
> Arkadiy


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



More information about the Losangeles-pm mailing list