From: Jarkko Hietaniemi Date: Thu, 11 Apr 2002 20:41:23 +0000 (+0000) Subject: FAQ patch from mjd regarding Tie::File. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=30852c57b1a5333a45e16bf8bdc51e232a28eed0;p=p5sagit%2Fp5-mst-13.2.git FAQ patch from mjd regarding Tie::File. p4raw-id: //depot/perl@15868 --- diff --git a/pod/perlfaq5.pod b/pod/perlfaq5.pod index 4030824..521cb6f 100644 --- a/pod/perlfaq5.pod +++ b/pod/perlfaq5.pod @@ -757,11 +757,12 @@ you see someone do this: @lines = ; -you should think long and hard about why you need everything loaded -at once. It's just not a scalable solution. You might also find it -more fun to use the standard DB_File module's $DB_RECNO bindings, -which allow you to tie an array to a file so that accessing an element -the array actually accesses the corresponding line in the file. +you should think long and hard about why you need everything loaded at +once. It's just not a scalable solution. You might also find it more +fun to use the standard Tie::File module, or the DB_File module's +$DB_RECNO bindings, which allow you to tie an array to a file so that +accessing an element the array actually accesses the corresponding +line in the file. You can read the entire filehandle contents into a scalar.