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

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

remove undefined values from an array

## NAME

Catmandu::Fix::compact - remove undefined values from an array

## SYNOPSIS

```
   # list => [undef,"hello",undef,"world"]
   compact(list)
   # list => ["Hello","world"]
```

## SEE ALSO

Catmandu::Fix
