---
name: "Catmandu::Fix::string"
section: "3pm"
platform: "linux"
package: "libcatmandu-perl"
version: "1.2024-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Catmandu::Fix::string"
---

# Catmandu::Fix::string(3pm)

convert a value to a string

## NAME

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

## 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

Catmandu::Fix
