in reply to Overwrite file protection
You may be better off using something like..$inc = 1; -e < $filename~1 >;$inc++; # file exists, $inc now 2 $inc = 2; -e < $filename~2 >;$inc++; # file doesn't exist, $inc now 3
Cheers, Ben.$inc = 1; while (-e $filename."~".$inc) { $inc++;}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Overwrite file protection
by sauoq (Abbot) on Jun 16, 2003 at 20:43 UTC |