LibreCat / Catmandu

Catmandu - a data processing toolkit

Home Page:https://librecat.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TSV exporter does not use its 'fh' parameter

jajm opened this issue · comments

Sample code to reproduce the issue:

use Catmandu;
use Catmandu::Sane;
use File::Temp;

my $exporter = Catmandu->exporter('TSV', fh => File::Temp->new());
$exporter->add({foo => 'bar'});
$exporter->commit;

Instead of writing to the temporary file, it will print to STDOUT.

Hi, you should use the file parameter

Hi, you should use the file parameter

Thanks, that works.