in reply to accessing data structure

Seems you are new to references. Your question will be answered by reading the following Perl documentation:

perlreftut and perldsc

lupey