in reply to Re: Vexing Race Condition
in thread Vexing Race Condition
Or use Path::Tiny's trick: open the file for append, lock it, truncate to 0, then write new data :)
( Untested, let me know if it works :)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Vexing Race Condition
by Maelstrom (Beadle) on May 03, 2025 at 13:45 UTC | |
by tybalt89 (Monsignor) on May 03, 2025 at 17:13 UTC |