while (<>) { do_something($_) if (6..eof()); }