in reply to diamond operator current filename
Current filename using the "diamond operator" is in $ARGV.
<> is hiding the use of the ARGV file handle, so <> is the same as <ARGV>.
Whether someone else can write to the file will depend on the file locking used in the implementation. Surprisingly on the implementations I have tried this on the (hidden) open allows another process to write to the file at the same time, and we read garbled data.