in reply to Iterating through HUGE FILES

Add a print '.'; as the first thing in the while to see the progress - of course if it is a small number of very large lines rather than a very large number of small lines then you might not see much happening.

/J\

Replies are listed 'Best First'.
Re^2: Iterating through HUGE FILES
by Fletch (Bishop) on May 10, 2005 at 16:51 UTC

    Make sure you $| = 1 beforehand, though (or you print to STDERR).

    Also useful is something like print STDERR '.' if $. % 100 == 0 to get biff'd every 100 lines.