in reply to Working with a very large log file (parsing data out)

open( my $log_file_handle, 'logfile.log' ) or die( "Could not open fil +e\n" ); while( <$log_file_handle> ) { my $single_line_in_log_file = $_ ; ## Now we are dealing with only one line ... } close( $log_file_handle );

You might also want to save the line number you have reached and seek it so you can continue from where you left off, in case the program dies.