setpos $fh->setpos pos Uses the value (pos) returned by getpos to restore a previous position of the FileHandle.