in reply to hash on memory or disk?
then you'll be slurping the whole file into memory. Better to do ...@log_entries = <LOGFILE>;
This:while(<LOGFILE>) { # stuff to process this single log entry }
also looks weird. You assign to $maillist{$hostqid}, then use it, then immediately delete the hash entry, then immediately assign a new value to it.$maillist{$hostqid}=$mail; $msgid=${maillist{$hostqid}}->msgid; delete $maillist{$hostqid}; $maillist{$hostqid}=$nmail;
|
|---|