From: Jarkko Hietaniemi Date: Fri, 1 Mar 2002 13:23:41 +0000 (+0000) Subject: Advertise Tie::File. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b3b08c80675caa159d2328f3eb67ef1f9440082b;p=p5sagit%2Fp5-mst-13.2.git Advertise Tie::File. p4raw-id: //depot/perl@14922 --- diff --git a/pod/perldelta.pod b/pod/perldelta.pod index bed3e9a..88b5418 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -872,6 +872,11 @@ where data sharing was implicit. See L. =item * +C, by Mark-Jason Dominis, allows one to handle a file +like an array of lines. + +=item * + C, by Ilya Zakharevich, provides on-demand loaded hashes. =item * diff --git a/pod/perlfaq5.pod b/pod/perlfaq5.pod index 80aad94..8c4aa2f 100644 --- a/pod/perlfaq5.pod +++ b/pod/perlfaq5.pod @@ -78,9 +78,13 @@ See L for other examples of fetching URLs over the web. =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