Change 14922 by jhi@alpha on 2002/03/01 13:23:41
Advertise Tie::File.
Affected files ...
..... //depot/perl/pod/perldelta.pod#291 edit
..... //depot/perl/pod/perlfaq5.pod#37 edit
Differences ...
==== //depot/perl/pod/perldelta.pod#291 (text) ====
Index: perl/pod/perldelta.pod
--- perl/pod/perldelta.pod.~1~ Fri Mar 1 06:30:05 2002
+++ perl/pod/perldelta.pod Fri Mar 1 06:30:05 2002
@@ -872,6 +872,11 @@
=item *
+C<Tie::File>, by Mark-Jason Dominis, allows one to handle a file
+like an array of lines.
+
+=item *
+
C<Tie::Memoize>, by Ilya Zakharevich, provides on-demand loaded hashes.
=item *
==== //depot/perl/pod/perlfaq5.pod#37 (text) ====
Index: perl/pod/perlfaq5.pod
--- perl/pod/perlfaq5.pod.~1~ Fri Mar 1 06:30:05 2002
+++ perl/pod/perlfaq5.pod Fri Mar 1 06:30:05 2002
@@ -78,9 +78,13 @@
=head2 How do I change one line in a file/delete a line in a file/insert a line in
the middle of a file/append to the beginning of a file?
-Those are operations of a text editor. Perl is not a text editor.
-Perl is a programming language. You have to decompose the problem into
-low-level calls to read, write, open, close, and seek.
+The short answer is to use the Tie::File module, which is included
+in the standard distribution since Perl 5.8.0.
+
+The long answer is that those are operations of a text editor. Perl
+is not a text editor. Perl is a programming language. You have to
+decompose the problem into low-level calls to read, write, open,
+close, and seek.
Although humans have an easy time thinking of a text file as being a
sequence of lines that operates much like a stack of playing cards--or
End of Patch.