Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Large file processed line by line

by btrott (Parson)
on Jun 19, 2001 at 05:02 UTC ( [id://89533]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        open FH, "foo" or die "Can't open foo: $!";
        while (<FH>) {
            ## current line is in $_, process it
        }
        close FH or warn "Error closing foo: $!";
    
  2. or download this
        while (<>) {
            ## line is in $_
        }
    
  3. or download this
        $ process.pl foo.txt bar.txt baz.txt
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-03-29 00:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found