Etienne Ledoux wrote:
Greetings,
Hello,
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.
perlopentut has an example using less instead of more.
my $pager = $ENV{ PAGER } || 'more';
open STDOUT, "| $pager" or die "Cannot fork pager $pager: $!";
perldoc perlopentut
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>