Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: reading flat file

by davido (Archbishop)
on Oct 03, 2011 at 02:59 UTC ( #929256=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open my $file_handle, '<', 'filename.txt' or die $!;
    while( <$file_handle> ) {
    ...
        # do something with the line held in $_
    }
    close $file_handle;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (15)
As of 2014-09-17 13:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (80 votes), past polls