in reply to Help with MySQL SELECT into multidimensional array

Your next step, if not already taken, should be to read the documentation for the modules you mentioned: eg, perldoc modulename at your CLI.