As a special case the 3 arg form with a read/write mode and the third argument being undef:
open(TMP, "+>", undef) or die ...
opens a filehandle to an anonymous temporary file. Also using "+<" works for symmetry, but you really should consider writing something to the temporary file first. You will need to seek() to do the reading.
prints "undefined"perl -le 'print defined($ARGV[0])?"defined":"undefined"'
In reply to Re: 3-arg open() does not give warnings!?
by Transient
in thread 3-arg open() does not give warnings!?
by graff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |