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::string - convert a value to a string

Name

       Catmandu::Fix::string - convert a value to a string

See Also

       Catmandu::Fix

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

Synopsis

           # year => 2016
           string(year)
           # year => "2016"

           # foo => ["a", "b", "c"]
           string(foo)
           # foo => "abc"

           # foo => ["a", {b => "c"}, "d"]
           string(foo)
           # foo => ""

           # foo => {2 => "b", 1 => "a"}
           string(foo)
           # foo => "ab"

           # foo => {a => ["b"]}
           string(foo)
           # foo => ""

See Also