NAME

Couch::DB::Util - utility functions

INHERITANCE

Couch::DB::Util
  is an Exporter

SYNOPSIS

use Couch::DB::Util;           # obligatory!
use Couch::DB::Util  qw(flat); # alternative

DESCRIPTION

All modules in CouchDB must import this module, because it also offers additional features to the namespace, like 'warnings' and 'strict'.

Functions

apply_tree($tree, CODE)

Apply the CODE to all elements in the $tree. Returns a new tree.

flat(LIST|ARRAY)

Returns all defined elements found in the LIST or ARRAY. The parameter LIST may contain ARRAYs.

pile(LIST|ARRAY)

Create a new ARRAY from the offered arguments, combining all elements from the LIST and ARRAYs. Undefined elements are removed.

simplified($name, $data)

Returns a Data::Dumper output, which is a simplified version of the $data. A normal dump would show internals of objects which make the output very verbose, hence harder to interpret.

SEE ALSO

This module is part of Couch-DB version 0.201, built on January 30, 2026. Website: http://perl.overmeer.net/CPAN/

LICENSE

For contributors see file ChangeLog.

This software is copyright (c) 2024-2026 by Mark Overmeer.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.