NN learning, perl genes parsing