Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Integer to Money format

by happy.barney (Pilgrim)
on Jan 20, 2011 at 07:00 UTC ( #883257=note: print w/replies, xml ) Need Help??


in reply to Integer to Money format

my $n = '4123456789'; $n =~ s/(?<= \d )(?= (?:\d{2})* \d{3} $ )/,/gx;

Replies are listed 'Best First'.
Re^2: Integer to Money format
by vinoth.ree (Monsignor) on Jan 20, 2011 at 08:13 UTC

    Thank you very much!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://883257]
help
Chatterbox?
[Corion]: thezip: Quite good, after a one week vacation in the sun ;)
[Corion]: I hope you're well too!
[thezip]: Where did you go? We've already set a record for all-time February rainfall here.
[Corion]: thezip: The Canary Islands - they have a constant climate
[Corion]: Maybe a bit too many old people, but for some do-nothing vacation for R&R exactly the right thing ;)=
[thezip]: That's awesome. I bet you feel totally rejuvenated and ready for the next thing.

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2017-02-23 17:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (349 votes). Check out past polls.