in reply to HowTo retrieve the position in a file from the FH

You just want to use setpos, instead of seek.
$fh->setpos($pos) ; # go back
getpos returns an "opaque value" that represents the position in the file, it isn't just a numeric offset.
---
my name's not Keith, and I'm not reasonable.