Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^3: check for latest file, remove and touch file?by mr_mischief (Monsignor) |
on Jan 05, 2016 at 20:39 UTC ( [id://1152017]=note: print w/replies, xml ) | Need Help?? |
Assuming the file already exists, yes append mode would be better. If it doesn't already exist, then the two are equivalent. To make it more similar to touch it should be appending. You're right about that.
In Section
Seekers of Perl Wisdom
|
|