while (<>) { ... } # check $! which is probably from the last close