while (my $line = <INFILE>) { chomp $line; if ($line =~ /^$ARGV[1]/){ $filter_count++; push(@rawfile,$line); } }
A little bit more fine-tuning:
Hint: Use Devel::NYTProf to locate hot spots in your code.
Alexander
In reply to Re^4: How to split file for threading?
by afoken
in thread How to split file for threading?
by diyaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |