Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: Re: Re: Skip 21 Lines

by suaveant (Parson)
on Apr 24, 2001 at 23:06 UTC ( #75208=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Skip 21 Lines
in thread Skip 21 Lines

No... the while goes through 21 one times, then breaks out... (tho might lose line 22... 1..20 might be needed in this case... but once it exits the loop you either start a new loop or read the reast into an array or whatever, since your placeholder in the file is now at line 22. You see? But that way it isnt perfoming the line check after the 21st line.. not a big efficiency savings... but a bit.
                - Ant

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Skip 21 Lines
by virtualsue (Vicar) on Apr 26, 2001 at 17:05 UTC
    OK, I see what you mean. I read it too fast the first time and thought your "rest of processing" bit was inside the first while(). My bad. Yes, you'd need 1..20 for this technique to work.

    I didn't see this response due to a config problem on my part. Now I know what "some notes below your chosen depth" means, sort of. I had not set a depth and assumed that I would see all responses in a thread. Apparently not.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2022-01-25 16:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (67 votes). Check out past polls.

    Notices?