in reply to How do I mark the end of a file?

If you're only going to be running this a few times, you could slurp the entire file into memory (such as: local $/; my $data = <FH>), use s/// to get rid of the chars at the end, and write the data back to the file.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

Note: All code is untested, unless otherwise stated