Help for this page

Select Code to Download


  1. or download this
    $foo = '1.23.456.78';
    print join '.', map {sprintf("%03d", $_)} split(/\./, $foo);
    
  2. or download this
    print join '.', grep{s/ /-/g} map {sprintf("%03d", $_)} split(/\./, $foo);