in reply to how to print value at reference?
See Tutorials: Data Type: Array, references quick reference
More elaborate and coprehensive tutorial at http://learn.perl.org/books/beginning-perl/