Help for this page

Select Code to Download


  1. or download this
    sub commify
      {
        my $number = shift;
        while ($number =~ s/(^-*\d*\d)(\d{3})/$1,$2/) { ; }
        return $number;
      }