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.
In reply to Re: Skip 21 Lines
by satchboost
in thread Skip 21 Lines
by qball
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |