in reply to HTML-Parser: a newbie question: need to extract exactly line 999 out of 5000 files..
I must admit that I find it quite remarkable that a line number is actually the deciding factor... Are you absolutely sure that this is true, “in the general case?”
The solution that you were just offered is what we affectionately call, “a one-liner.” In other words, it absolutely is possible to extract the 999th line from a directory-full of files in just one line of code. But you should consider this kind of revelation to be illustrative, not necessarily a general solution.
Please do this: describe, as best you can, what you really want to get, and, what you really want to do with it. Believe me when I say these three things:
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: HTML-Parser: a newbie question: need to extract exactly line 999 out of 5000 files..
by morgon (Priest) on Oct 16, 2010 at 01:25 UTC | |
by Perlbeginner1 (Scribe) on Oct 16, 2010 at 09:29 UTC |