in reply to what is the purpose of Tie::File
Did you even try to read the documentation of Tie::File?
Tie::File represents a regular text file as a Perl array. Each element in the array corresponds to a record in the file. The first line of the file is element 0 of the array; the second line is element 1, and so on.
The file is not loaded into memory, so this will work even for gigantic files.
Changes to the array are reflected in the file immediately.
Lazy people and beginners may now stop reading the manual.
Tie::File has its uses, but of course it introduces some overhead. For some manipulations, the overhead can become a real performance killer.
Alexander
--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: what is the purpose of Tie::File
by Lotus1 (Vicar) on Nov 11, 2012 at 00:19 UTC |
In Section
Seekers of Perl Wisdom