in reply to Can you tell me why I get this error and if I can optimize my code somehow?

Is that really the code you are using?

I get this compile error:

Can't locate stricts.pm in @INC

If I change stricts to strict, I get this compile error:

Global symbol "%hash_pfamA_tc" requires explicit package name at