Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Unlink or rename?by iphone (Beadle) |
on Dec 22, 2010 at 06:23 UTC ( [id://878442]=perlquestion: print w/replies, xml ) | Need Help?? |
iphone has asked for the wisdom of the Perl Monks concerning the following question: I open a file to append some data but the next time when the script runs I want this file to be deleted so that the data doesnt get appended to the already existing file.I know there is an unlink command but I read somewhere that renaming would be a best option?I want to get the fellow monks opinion on this.Please let me know your suggestions
Back to
Seekers of Perl Wisdom
|
|