RE: how can I |more output.

2004-08-26 Thread Bob Showalter
Etienne Ledoux wrote: > Greetings, > > I have a program that does a search on a db and prints the output to > the screen. If there is a lot of output how can I a stop/continue > displaying it. like 'ls -l |more' would do. or anything |more for > that matter. Read perldoc perlopentut and search f

Re: how can I |more output.

2004-08-26 Thread Chris Devers
On Thu, 26 Aug 2004, Etienne Ledoux wrote: Here is the output I'm trying to '|more' while (@ref = $sth->fetchrow_array()) { print "Username: $ref[0], Password: $ref[1]\n"; } I tried putting |more at various positions where I thought it might work. But it doesn't work as

Re: how can I |more output.

2004-08-26 Thread John W. Krahn
Etienne Ledoux wrote: Greetings, Hello, I have a program that does a search on a db and prints the output to the screen. If there is a lot of output how can I a stop/continue displaying it. like 'ls -l |more' would do. or anything |more for that matter. perlopentut has an example using less inste

Re: how can I |more output.

2004-08-26 Thread Ramprasad A Padmanabhan
On Thu, 2004-08-26 at 13:26, Etienne Ledoux wrote: > My program starts with a menu with options. That being one of the options to > choose from. Once it is done it returns to the main menu again so you can run > other options again. I would like to be able to do this within my program > somehow

Re: how can I |more output.

2004-08-26 Thread Etienne Ledoux
My program starts with a menu with options. That being one of the options to choose from. Once it is done it returns to the main menu again so you can run other options again. I would like to be able to do this within my program somehow if possible. If not, I guess I could run it with |more from

Re: how can I |more output.

2004-08-26 Thread Edward Wijaya
I guess you should use the "|more" command in the command prompt not inside the perl code itself. perl code.pl |more On Thu, 26 Aug 2004 09:36:38 +0200, Etienne Ledoux <[EMAIL PROTECTED]> wrote: ok. Here is the output I'm trying to '|more' while (@ref = $sth->fetchrow_array()) {

Re: how can I |more output.

2004-08-26 Thread Etienne Ledoux
ok. Here is the output I'm trying to '|more' while (@ref = $sth->fetchrow_array()) { print "Username: $ref[0], Password: $ref[1]\n"; } I tried putting |more at various positions where I thought it might work. But it doesn't work as expected. On Thursday 26 August

Re: how can I |more output.

2004-08-26 Thread Etienne Ledoux
On Thursday 26 August 2004 09:20, Ramprasad A Padmanabhan wrote: > On Thu, 2004-08-26 at 12:28, Etienne Ledoux wrote: > > Greetings, > > > > I have a program that does a search on a db and prints the output to the > > screen. If there is a lot of output how can I a stop/continue displaying > > it.

Re: how can I |more output.

2004-08-26 Thread Ramprasad A Padmanabhan
On Thu, 2004-08-26 at 12:28, Etienne Ledoux wrote: > Greetings, > > I have a program that does a search on a db and prints the output to the > screen. If there is a lot of output how can I a stop/continue displaying it. > like 'ls -l |more' would do. or anything |more for that matter. > > tx >