Perl open updating file in place


26-Sep-2020 10:12

The meaning of open with more than three arguments for non-pipe modes is not yet defined, but experimental "layers" may give extra LIST arguments meaning.

However, this also bars you from opening pipes to commands that intentionally contain shell metacharacters, such as: See Safe Pipe Opens in perlipc for more examples of this.

Perl will attempt to flush all files opened for output before any operation that may do a fork, but this may not be supported on some platforms (see perlport).