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)} }
In reply to Re: About text file parsing
by Marshall
in thread About text file parsing
by dideod.yang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |