http://qs321.pair.com?node_id=110140


in reply to Separating big numbers with commas

Woohoo!

I can help for once! As I found previously!

$number=1234567; # with commas, should be "1,234,567" $number =~ s/(\d)(?=(\d{3})+(\D|$))/$1\,/g;
Node:
http://www.perlmonks.com/index.pl?node_id=28331&lastnode_id=864