in reply to Paging on input/file

Use the mighty CPAN. Check out Term::Pager, et al.