Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Best way to read line x from a file

by davido (Cardinal)
on Mar 29, 2004 at 16:09 UTC ( [id://340653]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $linenum = 10;
    while ( my $line = <FILE>) {
    ...
        # Process the one line here...
        last;  # No need to continue.
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-24 20:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found