in reply to Re^3: Memory Problems with Parsing
in thread Memory Problems with Parsing
The Comments are there because I tried making it one statement, so as it goes through the file it now keeps the logs and dates together. The until statement was my problem, I guess learning from mistakes is always the best. Thanks for the help!while(<>){ if (/^[0-9]+, |Sent:/){ push (@logs, $_); }# elsif (/Sent:/) { # push (@dates, $_); #} } print $logs[0]; print $logs[1]; #print @dates;
|
|---|