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 distribution version 0.006, built on September 09, 2024. Website: http://perl.overmeer.net/CPAN/
LICENSE
Copyrights 2024 by [Mark Overmeer]. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://dev.perl.org/licenses/