Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2016-08-31 06:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (426 votes). Check out past polls.