Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: Reading multiple lines?

by rdw (Curate)
on Nov 29, 2000 at 14:11 UTC ( #43875=note: print w/replies, xml ) Need Help??


in reply to Re: Reading multiple lines?
in thread Reading multiple lines?

Well that's the kind of thing which would be nice to write, except I'd probably do it like this :-

@lines[0..9] = <FILE>

...but it still reads the whole file in (it just throws most of it away). Firstly, that'll use too much memory in this case, and secondly you can't then read the next N lines in.

Have fun,

rdw

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2021-01-27 01:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?