in reply to
inserting/deleting file data
You've already received some good suggestions about using DBD::SQLite so I thought I'd point out an alternative. When working with flat files, I've used DBD::CSV in the past with some success. Admittedly this was before I discovered DBD::SQLite and would probably go with that instead - YMMV of course so feel free to check them both out. I also notice from browsing the CPAN that there's a module called DBD::Sprite although I must admit that I've never used it myself.