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

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

convert nested data into a flat hash using the TT2 dot convention

## NAME

Catmandu::Fix::collapse - convert nested data into a flat hash using the TT2 dot convention

## SYNOPSIS

```
   # Collapse the data into a flat hash
   collapse()
   # Collaps the data into a flat hash with '-' as path seperator
   collapse(-sep => '-')
```

## SEE ALSO

Catmandu::Fix
