Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Separating big numbers with commas

by QM (Parson)
on Feb 19, 2015 at 13:17 UTC ( #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
Node Status?
node history
Node Type: note [id://1117215]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2020-05-27 23:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (162 votes). Check out past polls.

    Notices?