what is perl tie
Now, however, there is a better answer. New in Perl 5.8, Perl is a text editor. The Tie::File module associates a Perl array with the lines of a file; you can modify the array with assignments, or push, or splice, or reverse, or whatever you prefer, and your changes will be instantly propagated to the file. I'll introduce this module and show how to use it and how it works.