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

Re: Re: Reading multiple lines?

by rdw (Curate)
on Nov 29, 2000 at 14:11 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://43875]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-23 16:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found