Skip to content

Instantly share code, notes, and snippets.

@phochste
Last active August 29, 2015 14:08
Show Gist options
  • Save phochste/5775ec69205db377c4b3 to your computer and use it in GitHub Desktop.
Save phochste/5775ec69205db377c4b3 to your computer and use it in GitHub Desktop.
use Catmandu;
my $var = '';
my $exporter = Catmandu->exporter('JSON', file => \$var);
$exporter->add({ 'aaargh' => 'doedoedoe' });
$exporter->commit;
print $var;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment