Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 romping around the Monastery: (8)
As of 2015-01-30 22:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (254 votes), past polls