in reply to Re^8: Clear the contents of the text file
in thread Clear the contents of the text file
>>>And the reason to do this in the OP's case is not for file permission preservation, but for file locking.
>>The rest of the OPs program doesn't use advisory locking, so there is no benefit if Path::Tiny uses it
From the OP:
> Once those actions are completed i need to clear out the contents of the files so that nobody resuses those same contents when the action is taken on new set of servers
Whatever. The OP can't figure out how to install P::T so truncate() is a probably a better option for him anyway.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Clear the contents of the text file
by Anonymous Monk on Jul 22, 2015 at 04:04 UTC |