in reply to Skip 21 Lines
open MY_FILE, $filename; seek MY_FILE, 21, 0; while (<MY_FILE) { ... do reading schtuff here ... }
That way, you go right to where you want to go. No silly while loops or anything like that.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Skip 21 Lines
by merlyn (Sage) on Apr 24, 2001 at 22:40 UTC | |
by satchboost (Scribe) on Apr 24, 2001 at 22:47 UTC |