in reply to Query database
You're getting an array reference back. Most likely, the documentation tells you that. Also see tye's References Quick Reference, perlreftut and Data::Dumper for inspecting data structures.