Help for this page
Select Code to Download
Select
or
download this
$number =~ s/(\d{1,3}?)(?=(\d{3})+$)/$1,/g;