in reply to How to speed up/multi thread extract from txt files?
if(/3_prtnm_/)
becomes:
if (index($_, '3_prtnm_') != -1)
If I read your code right, you are using regex matches to look for fixed strings, which is not the fastest approach.