[EMAIL PROTECTED] wrote: > Hi There, > Any pointers to how to call "more" on a file in perl script. > I am writing one script which displays one report to user and then > asks some inputs. > > User need to see complete file. To solve this, I thought I can call > `more <fileName> in the script and continue. > But looks loke it is not possible.
You didn't post your script, so I can only guess. You can't use backticks, since they capture the output. If more is writing to a non-tty (because you're capturing the output), it obviously has no way to pause at a screenful, so it just passes the entire input to the output. You need to use system() instead. Also, it's customary to respect $ENV{PAGER}. I have my pager set to less, for example. Read "perldoc perlopentut" and search for PAGER to see an example of how to do this kind of thing. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>