@a = keys %{{@a}} # for even indices @a = values %{{@a}} # for odd indices