Help for this page

Select Code to Download


  1. or download this
    my $str = "123456789";
    $str = reverse $str;
    $str =~ s/(?<=\d)(?=(\d\d)+$)/-/g;
    $str = reverse $str;
    print $str, "\n";