in reply to pushing

You have to reopen your filehandle for writing. So before the seek, you should have something like:
close GB; open( GB, ">$file");
You than can even leave the seek and truncate out.

Hope this helps,

Jeroen
I was dreaming of guitarnotes that would irritate an executive kind of guy (FZ)