Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: how to read every 10 line from input text file ?

by 7stud (Deacon)
on Nov 24, 2010 at 06:56 UTC ( #873366=note: print w/replies, xml ) Need Help??


in reply to how to read every 10 line from input text file ?

This is the modern way to open a file in perl:

open my $INFILE, '<', 'file.txt' or die "Couldn't open file.txt: $!";

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (1)
As of 2023-03-30 23:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (74 votes). Check out past polls.

    Notices?