in reply to Displaying output page-by-page?
Here's one way, open local(*STDOUT), '|-', $ENV{'PAGER'} or warn $!; If the PAGER environment variable is not set, that will just warn you and go on.
After Compline,Zaxo