in reply to Re: Large file problem
in thread Large file problem

Just change your 'for' to 'while'

...because for would slurp your file into memory,
whereas while only reads it line by line.

It's mentioned in perldoc perlintro
Update: bummer, it isn't mentioned there. And so certain was I...

Cheers, Sören