in reply to About text file parsing
Do not push to an array if you can process the line right now!
while(<FILE>) { if(/^sample\s+(\S+)/){process_sample($1)} if(/^good\s+(\S+)/) {process_good($1)} } [download]