Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Jumping out of a partially read file

by thunders (Priest)
on May 09, 2002 at 20:25 UTC ( #165495=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open(FILE,'<some_file.txt'); 
    for((<FILE>)[0..5]){
        print;
    }
    
  2. or download this
    open(FILE,'<some_file.txt') or die("cant open file: $!"); 
    my $data;
    ...
       }
    }
    close FILE;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://165495]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2017-12-16 19:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (458 votes). Check out past polls.

    Notices?