laziness, impatience, and hubris | |
PerlMonks |
Re: Tie::Fileby Revelation (Deacon) |
on May 09, 2002 at 00:43 UTC ( [id://165222]=note: print w/replies, xml ) | Need Help?? |
I would reccomend using Tie::File for this. Frankly, rewriting the whole file to change just a few lines is a problematic situation with flat files. Although I would prefer some sort of database backend, Tie::File gives a database, without any necessary fields, etc. You can read about Tie::File (Writen by Dominus) here, or go to cpan and download the module. Here's an example of how to edit a file from his article. It should be quicker. Gyan Kapur gyan.kapur@rhhllp.com
In Section
Seekers of Perl Wisdom
|
|