NAME Parv::Util - Miscellaneous utility functions which do not fit anywhere else SYNOPSIS use Parv::Util qw( ); DESCRIPTION Parv::Util is functional module to be turned into an OO module at some later time. It collects miscellaneous utility functions which do not fit anywhere. INTERFACE &def_value Inputs (1) Prefered value to check for "defined"ness and (2) default value in lieu of the preferred value Output Prefered value if defined, default value otherwise. &check_hash Input Hash reference to check for validity and non-emptyness. Output If input is a hash reference and non-empty: 1, 'ok'; if input is not a hash reference or is non empty: 0, error message; &flat_hash Inputs (1) Hash reference to be flattened and (2) optional array reference of keys in the required order. Output Ordered (if second input is given) keys and values as array reference. Distribution and such Copyright(c) 2003-2004 Parv . All rights reserved. LICENSE: This collection is free software. It can be used in any way as desired only when proper credit is given by including this advertisement (from Copyright to DISCLAIMER sections). DISCLAIMER: I am not responsible for any loss or damage due to use of this software; use it at your own risk.