Help for this page

Select Code to Download


  1. or download this
    my $oldfile = "name_0009";
    my $num = substr($oldfile, -4);
    ++$num;
    my $newfile = substr($oldfile, 0, -4) . $num;
    
  2. or download this
    my $oldfile = 'name_0009';
    substr(my $newfile = $oldfile, -4)++;