diff options
author | Ricardo Signes <rjbs@cpan.org> | 2015-05-29 18:47:57 -0400 |
---|---|---|
committer | Ricardo Signes <rjbs@cpan.org> | 2015-05-29 18:47:57 -0400 |
commit | 2f737055df830280fee8cf7229d6ebabd94a6208 (patch) | |
tree | e5e9872fcc86b4f3734ad1430844a78889c7f487 | |
parent | 2fe1cb6b500d3e46c60a64717725cb3b7e4b1acc (diff) | |
download | perl-2f737055df830280fee8cf7229d6ebabd94a6208.tar.gz |
perldelta: close setting $! is a bugfix
-rw-r--r-- | pod/perldelta.pod | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod index 2d34ef5b2c..83f4a7f12b 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -176,14 +176,6 @@ is now implemented on Win32. It has the same limitations as C<system LIST> on Win32, since the Win32 API doesn't accept program arguments as a list. -=head2 C<close> now sets C<$!> - -When an I/O error occurs, the fact that there has been an error is recorded -in the handle. C<close> returns false for such a handle. Previously, the -value of C<$!> would be untouched by C<close>, so the common convention of -writing S<C<close $fh or die $!>> did not work reliably. Now the handle -records the value of C<$!>, too, and C<close> restores it. - =head2 Assignment to list repetition C<(...) x ...> can now be used within a list that is assigned to, as long @@ -2958,6 +2950,16 @@ index is still done using C<aelemfast>. =item * +C<close> now sets C<$!> + +When an I/O error occurs, the fact that there has been an error is recorded +in the handle. C<close> returns false for such a handle. Previously, the +value of C<$!> would be untouched by C<close>, so the common convention of +writing S<C<close $fh or die $!>> did not work reliably. Now the handle +records the value of C<$!>, too, and C<close> restores it. + +=item * + C<pack("D", $x)> and C<pack("F", $x)> now zero the padding on x86 long double builds. Under some build options on GCC 4.8 and later, they used to either overwrite the zero-initialized padding, or bypass the |