Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: How do I seek to a certain position in a file?

by simonflk (Pilgrim)
on Nov 13, 2002 at 15:57 UTC ( [id://212613]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @array = <FILE>;
    close FILE;
    
    # Print line 10
    print $array[10];
    
  2. or download this
    my $findline = 10;
    
    ...
        # .. do something
        last; #don't read any more
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-03-28 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found