Help for this page

Select Code to Download


  1. or download this
    $inc = 1; -e < $filename~1 >;$inc++; # file exists, $inc now 2
    $inc = 2; -e < $filename~2 >;$inc++; # file doesn't exist, $inc now 3
    
  2. or download this
    $inc = 1;
    while (-e $filename."~".$inc) { $inc++;}