Lotus1 has asked for the wisdom of the Perl Monks concerning the following question:
Recently I saw code solutions posted to perlmonks that used Tie::File to read a file but all output was sent to an output file. This didn't make sense to me. Then I saw other monks comment that Tie::File is slow for changing very large files so I read about how it buffers records it reads and writes. I didn't understand what the module would be good for.
This morning I found a blog entry that states that Tie::File "is a delightful way to do in place editing of files." This clicked for me and seems obvious now. Now I see in the synopsis for the module a comment about editing in place. What are others using this module for and how useful do you find it?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: what is the purpose of Tie::File
by afoken (Chancellor) on Nov 10, 2012 at 19:23 UTC | |
by Lotus1 (Vicar) on Nov 11, 2012 at 00:19 UTC | |
|
Re: what is the purpose of Tie::File
by Anonymous Monk on Nov 11, 2012 at 08:44 UTC | |
by Lotus1 (Vicar) on Nov 11, 2012 at 23:14 UTC | |
by ysth (Canon) on Nov 13, 2012 at 22:30 UTC | |
|
Re: what is the purpose of Tie::File
by remiah (Hermit) on Nov 12, 2012 at 00:32 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |