Etienne Ledoux wrote:
> Greetings,
> 
> I have a program that does a search on a db and prints the output to
> the screen. If there is a lot of output how can I a stop/continue
> displaying it. like 'ls -l |more' would do. or anything |more for
> that matter. 

Read perldoc perlopentut and search for the word "PAGER". (On the web at
http://www.perldoc.com/perl5.8.0/pod/perlopentut.html#Playing-with-STDIN-and
-STDOUT)

This shows you how to connect STDOUT to a pipe that will page your output.
You typically use the user's PAGER environment variable to determine the
program to use, degrading to more.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to