![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( #3333=superdoc: 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 reply to Re: Re: Output question
by arhuman
|
|