So the way I'm using to view a variable content is to use Data::Dumper in my template toolkit:
[% USE Dumper %] [% Dumper.dump(varname) %]
But the result I get is kind of a big mess - all the info about table relations, column types and attrbitues etc.
What I wonder is if there is a way to get a 'clean' variable content - as in only current result from the query being made + related resultsets (i.e. when I used php with cakephp framework there was a 'debug(varname)' command which provided such a result, which looked like this http://pastebin.com/Hut0LnAb).