> 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. > > Any pointers will be appreciated. >
Are you just trying to page the results? Have the user pipe the output of the script to 'more', this is a more common idiom. <script> | more Should do the trick, it is likely a better design not to force your script into requiring more, maybe in the future you won't want the results paginated. http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>