This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldelta for 42409c4069 (truncate FILENAME)
authorFather Chrysostomos <sprout@cpan.org>
Sat, 28 Jul 2012 07:09:11 +0000 (00:09 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 28 Jul 2012 07:09:11 +0000 (00:09 -0700)
pod/perldelta.pod

index 6f545d5..bc0f766 100644 (file)
@@ -359,6 +359,11 @@ and C<truncate> that can take either filenames or handles.
 C<stat 1 ? foo : bar> nows treats its argument as a file name (since it is
 an arbitrary expression), rather than the handle "foo".
 
+=item *
+
+C<truncate FOO, $len> no longer falls back to treating "FOO" as a file name
+if the filehandle has been deleted.  This was broken in Perl 5.16.0.
+
 =back
 
 =head1 Known Problems