P is for Practical | |
PerlMonks |
Re: Re: Output questionby arhuman (Vicar) |
on Dec 26, 2001 at 18:14 UTC ( [id://134393]=note: print w/replies, xml ) | Need Help?? |
I don't see why you should write your pager as '| more' will work both on unices and windoze... But, If you want to do it anyway, a simple test in front of each print :
should be enough for simple/small scripts... Or to be a little bit cleaner, using print2 instead of print, whith print2 defined like this :
UPDATE : Term::ReadKey May be more appropriate than getc. Anyway you got the idea... UPDATE2 : This answer is for oaklander, I replied to the wrong post. Apologizes (especially to Hotshot). "Only Bad Coders Code Badly In Perl" (OBC2BIP)
In Section
Seekers of Perl Wisdom
|
|