File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -389,6 +389,22 @@ manager will later use a regex to expand these into links.
389
389
390
390
=item *
391
391
392
+ L<C<open>|perlfunc/open> automatically creates an anonymous temporary file when
393
+ passed C<undef> as a filename:
394
+
395
+ open(my $fh, "+>", undef) or die ...
396
+
397
+ Due the way this feature was implemented, it would also trigger for
398
+ non-existent elements of arrays or hashes:
399
+
400
+ open(my $fh, "+>", $hash{no_such_key}) or die ...
401
+ # unexpectedly succeeds and creates a temp file
402
+
403
+ Now a temporary file is only created if a literal C<undef> is passed.
404
+ [GH #22385]
405
+
406
+ =item *
407
+
392
408
Compound assignment operators return lvalues that can be further modified:
393
409
394
410
($x &= $y) += $z;
You can’t perform that action at this time.
0 commit comments