Re: Read 20 lines when pressing n for next
- From: Chris Mattern <syscjm@xxxxxxxxxxxxxx>
- Date: Wed, 30 Apr 2008 10:49:27 -0500
On 2008-04-30, A. Sinan Unur <1usa@xxxxxxxxxxxxxxxxxxx> wrote:
s9uzaa@xxxxxxxxx wrote in news:37b9eb38-e188-4dc2-b3a7-I got $5 that says this is homework. "must have subroutine used" is
5f09cc3b81ea@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:
I would like to write a perl script with the following criteria match.
Give it a shot. Then post any questions you might encounter (please read
the posting guidelines first).
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.
Look up $. in perldoc perlvar
a dead giveaway.
--
Christopher Mattern
NOTICE
Thank you for noticing this new notice
Your noticing it has been noted
And will be reported to the authorities
.
- Follow-Ups:
- 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
- References:
- Read 20 lines when pressing n for next
- From: s9uzaa
- Re: Read 20 lines when pressing n for next
- From: A. Sinan Unur
- Read 20 lines when pressing n for next
- Prev by Date: Re: Compress::Zlib inflateInit help
- Next by Date: Re: What's wrong with transparency by GD?
- Previous by thread: Re: Read 20 lines when pressing n for next
- Next by thread: Re: Read 20 lines when pressing n for next
- Index(es):
Relevant Pages
|