summaryrefslogtreecommitdiff
path: root/pod/perldelta.pod
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-02-14 05:51:56 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-02-14 05:51:56 +0000
commitfbad3eb55c1f8c84d1dfd0e484ecddeffc891e79 (patch)
treef3886be033e03113de9177f18cdf413345741e1c /pod/perldelta.pod
parent428f79ef10ad4e14667125f22397bceac3e2c65e (diff)
downloadperl-fbad3eb55c1f8c84d1dfd0e484ecddeffc891e79.tar.gz
slurping an empty file should return '' rather than undef, with
commensurate effects on ARGV processing p4raw-id: //depot/perl@2910
Diffstat (limited to 'pod/perldelta.pod')
-rw-r--r--pod/perldelta.pod36
1 files changed, 36 insertions, 0 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index efa52de096..d858508fa1 100644
--- a/pod/perldelta.pod
+++ b/pod/perldelta.pod
@@ -125,6 +125,25 @@ now correctly prints "3|a", instead of "2|a".
The new format type 'Z' is useful for packing and unpacking null-terminated
strings. See L<perlfunc/"pack">.
+=head1 Significant bug fixes
+
+=head2 E<lt>HANDLEE<gt> on empty files
+
+With C<$/> set to C<undef>, slurping an empty file returns a string of
+zero length (instead of C<undef>, as it used to) for the first time the
+HANDLE is read. Subsequent reads yield C<undef>.
+
+This means that the following will append "foo" to an empty file (it used
+to not do anything before):
+
+ perl -0777 -pi -e 's/^/foo/' empty_file
+
+Note that the behavior of:
+
+ perl -pi -e 's/^/foo/' empty_file
+
+is unchanged (it continues to leave the file empty).
+
=head1 Supported Platforms
=over 4
@@ -225,8 +244,25 @@ stat(2) might lie, while access(2) knows better.
=head1 Utility Changes
+=head2 New Modules
+
+=over
+
Todo.
+=back
+
+=head2 Changes in existing modules
+
+=over
+
+=item Exporter
+
+Exporter::expand() takes an import list and returns the expanded
+list of names.
+
+=back
+
=head1 Documentation Changes
=over 4