summaryrefslogtreecommitdiff
path: root/pod/perlfaq5.pod
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-03-01 13:23:41 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-03-01 13:23:41 +0000
commitb3b08c80675caa159d2328f3eb67ef1f9440082b (patch)
treee689dd36bce3d2085e840ee8b2926a5ec44a6e69 /pod/perlfaq5.pod
parent0335b3e4877101bf2e3432e3eba39bec611df164 (diff)
downloadperl-b3b08c80675caa159d2328f3eb67ef1f9440082b.tar.gz
Advertise Tie::File.
p4raw-id: //depot/perl@14922
Diffstat (limited to 'pod/perlfaq5.pod')
-rw-r--r--pod/perlfaq5.pod10
1 files changed, 7 insertions, 3 deletions
diff --git a/pod/perlfaq5.pod b/pod/perlfaq5.pod
index 80aad9402d..8c4aa2f0c9 100644
--- a/pod/perlfaq5.pod
+++ b/pod/perlfaq5.pod
@@ -78,9 +78,13 @@ See L<perlfaq9> 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