The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
[% USE CSV -%]
[% CSV.dump([ 'Channel' 'Count' ]) %]

[% FOREACH row IN results %]
  [% mylist = [] %]
  [% mylist.push(row.channel) %]
  [% mylist.push(row.ch_count) %]
  [% CSV.dump(mylist) %]

[% END %]