If you're outputting to STDOUT, why not just pipe it to more?
There are a number of issues to worry about when doing it yourself such as
the size/type of terminal you're displaying on. More takes care of that
for you. Another option might be to look through the more source code.
Good luck,
John Delisle
Corporate Technology
Ceridian Canada Ltd
204-975-5909
|--------+----------------------------------------------->
| | "Chuck Lee" <[EMAIL PROTECTED]> |
| | Sent by: |
| | [EMAIL PROTECTED]|
| | eState.com |
| | |
| | |
| | 2002/05/15 01:58 PM |
| | Please respond to chuck.lee |
| | |
|--------+----------------------------------------------->
>----------------------------------------------------------------------------------------------------------|
|
|
| To: <[EMAIL PROTECTED]>
|
| cc:
|
| Subject: More or Pager function is Perl
|
>----------------------------------------------------------------------------------------------------------|
I'm output a massive list to STDOUT but wish to break it like the MORE
function in DOS. For instance I have a huge array and for each row the
array I'm outputting to STDOUT. But when the output reaches the end of the
page, I would like to pause it. What's the best way to do this?
thanks
Chuck
*:-----------------------------:*
* Chuck Lee
* Application/Systems Development
* InQuent Technologies, Inc.
* http://www.InQuent.com
* T:(416)645-4558
* F:(416)645-3920
*:-----------------------------:*
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
**********************************************************************
This e-mail and any files transmitted with it are considered
confidential and are intended solely for the use of the
individual or entity to whom they are addressed (intended).
This communication is subject to agent/client privilege.
If you are not the intended recipient (received in error) or
the person responsible for delivering the e-mail to the
intended recipient, be advised that you have received this
e-mail in error and that any use, dissemination, forwarding,
printing or copying of this e-mail is strictly prohibited. If
you have received this e-mail in error please notify the
sender immediately.
**********************************************************************
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs