http://www.perlmonks.org?node_id=287577


in reply to Re: Mysterious Disapperance of file contents
in thread Mysterious Disapperance of file contents

That's just wrong. flock and fcntl both take a filehandle as their first argument. How are you supposed to provide a filehandle without opening a file first?