Help for this page

Select Code to Download


  1. or download this
    $_ = reverse(join(',', reverse($_) =~ /.{1,3}/g));
    
  2. or download this
    $_ = join(',', split(/(?<=.)(?=(?:.{3})+\z)/, $_));
    
  3. or download this
    $_ =~ s/(?<=.)(?=(?:.{3})+\z)/,/g;