Catmandu::Fix::export_to_string - convert the value of field using a named exporter
export_to_string(my.field,'YAML') export_to_string(my.field2,'JSON') export_to_string(my.field3,'CSV', 'sep_char' => ';' )
This fix uses the function export_to_string of the package Catmandu, but requires the NAME of the exporter.
It expects a HASH or ARRAY as input. Other values are silently ignored.
name of the exporter to use. As usual in Catmandu, one can choose:
* full package name of the exporter (e.g. 'Catmandu::Exporter::JSON')
* short package name of the exporter (e.g. 'JSON')
* name of the exporter as declared in the Catmandu configuration
extra options for the named exporter
Nicolas Franck, <nicolas.franck at ugent.be>
<nicolas.franck at ugent.be>
Catmandu::Fix
To install Catmandu, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu
CPAN shell
perl -MCPAN -e shell install Catmandu
For more information on module installation, please visit the detailed CPAN module installation guide.