http://qs1969.pair.com?node_id=134404


in reply to Re: Output question
in thread Output question

You're welcome...

For the getc you better read the doc (or follow the link) as it will be more accurate and clear than I could ever be.
(anyway perldoc and/or SuperSearch and/or the camel book, must now be a a reflex for you Perl lover ;-)

Now for the use of the more command, just forget about using 'more' IN your script, use it the unix way
(joining several simple but efficient commands to do a complex task...) via pipe.
Only display the lines on the screen in your script and then using 'more' for the paging part :

perl yourscript.pl | more


"Only Bad Coders Code Badly In Perl" (OBC2BIP)