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
In reply to Re: How do I mark the end of a file?
by hardburn
in thread How do I mark the end of a file?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |