Help for this page

Select Code to Download


  1. or download this
    my $root_name = "foo";
    my $next_number = (sort {$b <=> $a} map {/(\d+)$/; $1} glob("${root_na
    +me}*"))[0] + 1;
    my $next_name = "$root_name$next_number";
    # ...