http://www.perlmonks.org?node_id=89538


in reply to Re: Re: Large file processed line by line
in thread Large file processed line by line

Right, -i is quite cool. But all -i does is open the file for in-place editing; it doesn't "edit the file one line at a time". If you notice, you also have the -p option in the above command line; that's actually the switch that's doing the line-by-line processing.