Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: Separating big numbers with commas

by QM (Parson)
on Feb 19, 2015 at 13:17 UTC ( [id://1117215]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $x = sprintf "%02d\/%02d\/%04d\ %02d\:%02d", $MM +1 , $DD , $YY + 1900
    +, $hh, $mm;
    $x =~ s/(\d)(?=(\d{3})+(\D|$))/$1\,/g;
    print $x;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1117215]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-19 21:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found