in reply to 5 of 10?
If you're not storing the data in a data structure, but are instead printing out each line in a while loop as you read from the file, you can check $. for the current line number, and only print the line if the line number is between 5 and 10. Or something such. You could last out of the loop after you hit the limit.
Does this make sense? There's no magic involved, really--you just have to code it up yourself.
Also, check out Randal's WebTechniques column on this: Giving 'more'.
|
|---|