Perl Hash access

Suppose I have a hash:

       my %table1 = (
                    'Sam' =>  {
                                'Company'       => 'XYZ',
                                'Post'          => 'Software Engineer',
                                'Skills'        => 'Perl',
                                },

                    'Mark' =>{
                                'Company'       => {
                                                       'Microsoft' => 'CMMi 5',
                                                       'Persistent'=> 'CMMi 4',
                                                       'TCS'       => 'CMMi 5',
                                                   },
                                'Post'          => 'Manager',
                                'Skills'        => 'Management',
                                },

                    'Debby'       => ['Shell', 'Perl, 'Python', 0, 5],
                    ['X', 'Y']  => ['A', 'B'],
                    );

And I want to access the array containing X and Y, how to access them in Perl?