logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Catmandu::Fix::export_to_string - convert the value of field using a named exporter

Author

       Nicolas Franck, "<nicolas.franck at ugent.be>"

Description

export_string(PATH,NAME[,EXPORT_OPTIONS])
       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.

       PATH
       NAME
           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

       EXPORT_OPTIONS
           extra options for the named exporter

Name

       Catmandu::Fix::export_to_string - convert the value of field using a named exporter

See Also

       Catmandu::Fix

perl v5.40.0                                       2025-01-17               Catmandu::Fix::export_to_string(3pm)

Synopsis

           export_to_string(my.field,'YAML')

           export_to_string(my.field2,'JSON')

           export_to_string(my.field3,'CSV', 'sep_char' => ';' )

See Also