in reply to Editing files...please help

If you have programmed before (in another language) then you should know it's possible, and you might've well thought of reading the file and changing that what should be changed and writing it back.

If you're new to programming, I suggest you go read some books and play around with Perl and the examples from the book. You can't expect to be able to make a program that a company will use if you have little programming experience - the resulting program will most probably be unreliable, and perhaps even insecure.

There's all sorts of other things that come into play here: E.g. if it's a CGI program, it might be run multiple times simultaneously, and multiple instances might try to write to the same file before other instances are finished (race condition). You'll need to research 'file locking' (flock) if it's a CGI script.

If it's a(n interactive) program meant to be run by only one user, you won't need file locking.