in reply to incrementing the file
There's a large number of file test unary operators which will check files for existence, size, writability and so on.
It's unclear whether you're renaming an existing file or generating a new, unique filename. If the former, File::Copy may be your best bet (there is a rename function but it has documented limitations).
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: incrementing the file
by abcdefg (Acolyte) on Feb 21, 2012 at 21:10 UTC | |
by oko1 (Deacon) on Feb 22, 2012 at 05:02 UTC |