Man pages sections > man3 > Catmandu::Fix::compact

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

Catmandu::Fix::compact(3pm) User Contributed Perl Documentation Catmandu::Fix::compact(3pm)

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
2017-10-01 perl v5.26.0