in reply to Separating big numbers with commas
Woohoo!
http://www.perlmonks.com/index.pl?node_id=28331&lastnode_id=864
I can help for once! As I found previously!
Node:$number=1234567; # with commas, should be "1,234,567" $number =~ s/(\d)(?=(\d{3})+(\D|$))/$1\,/g;
http://www.perlmonks.com/index.pl?node_id=28331&lastnode_id=864
In Section
Seekers of Perl Wisdom