in reply to MySQL undef
How can you ask such a question when nobody can possibly know what $aggr_table is? It /is/ not even a question. You should put some effort into posing a question, and explain what it is that you are trying to do, with what module, etc.
(for example, read also this node: How do I post a question effectively? )
In Section
Seekers of Perl Wisdom