![]() |
|
P is for Practical | |
PerlMonks |
incrementing the fileby abcdefg (Acolyte) |
on Feb 21, 2012 at 19:59 UTC ( #955376=perlquestion: print w/replies, xml ) | Need Help?? |
abcdefg has asked for the wisdom of the Perl Monks concerning the following question: I am trying to use an executable through my perl script which takes an input file and gives an output file with name output_.$inputfile. I want to check if this file output_.$inputfile already exists and if it already exist then add a numerical suffix as that can be incremented for each run. How can I do that.
Back to
Seekers of Perl Wisdom
|
|