Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Skip 21 Lines

by satchboost (Scribe)
on Apr 24, 2001 at 22:39 UTC ( [id://75194]=note: print w/replies, xml ) Need Help??


in reply to Skip 21 Lines

Ummm .... why not use seek? Something like:
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
      whoops. I'm a dunce! That'll teach me to think I can see something easy that 4 monks before me didn't.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://75194]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2024-04-18 09:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found