Read 20 lines when pressing n for next
- From: s9uzaa@xxxxxxxxx
- Date: Tue, 29 Apr 2008 18:21:12 -0700 (PDT)
Hi,
I would like to write a perl script with the following criteria match.
1. open any text file taken the name from the command line.
2. read top 20 lines and stops, then
3. ask to press letter "n or p" (for next/previous) to print next or
previous 20 lines.
would appreciate any kind of help.
4. must have subroutine used.
thanks
.
- Follow-Ups:
- Re: Read 20 lines when pressing n for next
- From: Ted Zlatanov
- Re: Read 20 lines when pressing n for next
- From: A. Sinan Unur
- Re: Read 20 lines when pressing n for next
- From: Jürgen Exner
- Re: Read 20 lines when pressing n for next
- Prev by Date: FAQ 3.7 How do I cross-reference my Perl programs?
- Next by Date: Re: Read 20 lines when pressing n for next
- Previous by thread: FAQ 3.7 How do I cross-reference my Perl programs?
- Next by thread: Re: Read 20 lines when pressing n for next
- Index(es):
Relevant Pages
|