%pair = ( X => 12, Y => 10); #then keep in a list like this... $pairlist[0] = \%pair;