in reply to Hash reference Problem

First, you should replace my $ref_2; with my $ref_2a; my $ref_2b;

Could you state, explicitly, what your question is?