in reply to Re: check for latest file, remove and touch file?
in thread check for latest file, remove and touch file?
open my $fh, '>', $f or die "Can't write to $f: $!\n";
Won't open-ing the file named $f in '>' write mode clobber the current contents of the file at the same time it changes time/date? Wouldn't '>>' append mode be better?
Give a man a fish: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: check for latest file, remove and touch file?
by mr_mischief (Monsignor) on Jan 05, 2016 at 20:39 UTC | |
|
Re^3: check for latest file, remove and touch file?
by GotToBTru (Prior) on Jan 07, 2016 at 15:48 UTC | |
by mr_mischief (Monsignor) on Jan 12, 2016 at 20:46 UTC |