in reply to Re^3: How to split file for threading?
in thread How to split file for threading?

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

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)