Help for this page

Select Code to Download


  1. or download this
    s/(?<=\d)(?=(?:\d{3})+\b)/$sep/g;
    
  2. or download this
    substr($n, pos($n), 0) = $sep while ($n =~ /\d(?=(?:\d{3})+\b)/g);
    
  3. or download this
    substr($n, -($_*3 + ($_-1)*length($sep)), 0) = $sep for (1..int((lengt
    +h($n)-1)/3));