Catman..._string(3pm)
π Catman..._string(3pm) π
okay so bestie, you've landed on the <pink>Catman..._string(3pm)</pink> page β it's part of the User Contributed Perl Documentation, and it's literally all about one lil' fix that yeets your field's value through an exporter and hands you back a string. no cap. π«Ά
πΈ NAME πΈ
Catmandu::Fix::export_to_string β takes the value sitting in a field and converts it using an exporter you name. that's the whole vibe. β¨
β¨ SYNOPSIS β¨
export_to_string(my.field,'YAML')
export_to_string(my.field2,'JSON')
export_to_string(my.field3,'CSV', 'sep_char' => ';' )
likeβ¦ look at her. three lines, three exporters, one with extra options. she ate. π
π DESCRIPTION π
π¦ export_string( PATH, NAME [, EXPORT_OPTIONS ] ) π¦
so this fix is out here calling the <mint>export_to_string</mint> function from the package Catmandu β but (and this is the plot twist) you have to give it the NAME of the exporter. it's not gonna guess for you, bestie. π
it's expecting a HASH or an ARRAY as input. anything else? silently ignored. like, no error, no warning, just vibes and nothing happens. so if your fix seems to be doing absolutely nothing, check your input type fr fr. π
PATH
(that's it. that's the entry. the original page lists it and then says nothing else about it β iconic minimalism, honestly π)
NAMEβ the name of the exporter you wanna use. and as usual in Catmandu, you've got options, queen:- the full package name of the exporter (e.g.
'Catmandu::Exporter::JSON') - the short package name of the exporter (e.g.
'JSON') - the name of the exporter as declared in the Catmandu configuration
- the full package name of the exporter (e.g.
EXPORT_OPTIONSβ extra options for the named exporter. sprinkle them in as you please. β¨
π AUTHOR π
Nicolas Franck, <nicolas.franck at ugent.be> β give him his flowers, he wrote the whole thing. π
π SEE ALSO π
Catmandu::Fix
and that's the page, bestie!! π«Ά this one shipped as part of perl v5.40.1 and got its lil timestamp on 2026-01-24, under the Catman..._string(3pm) name. go forth and export your strings. periodt. πβ¨
π¦ where this page comes from
- ubuntu resolute: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms