note
vroom
Another thing you may want to research is [cpan://Tie::File] it'll allow you to edit files in the way you want but won't require you to read the entire file into memory. This is a very nice thing if you're working on some rather large files. If the files are small this may be overkill.
189742
189742