MHArc::Util - General utilities for mail archiving system. |
MHArc::Util - General utilities for mail archiving system.
use MHArc::Util;
This module contains a collection of utility routines.
The following module variables can be set to affect the behavior of the utility routines:
$ECHO_CMDS
The default value for $ECHO_CMDS
is 0.
$ECHO_ONLY
$ECHO_CMDS
is true. The command itself will not be
executed at all.
The default value for $ECHO_ONLY
is 0.
By default, no routines are exported into the calling namespace.
Routines in this module can be imported by explicitly listing the
routines to import in the use
declaration:
use MHArc::Util qw( run_prg );
The following routines are availale:
ch_dir($dir)
cmd(LIST)
wait(2)
status
of the program invoked.
mk_dir($dir, $mask)
$mask
is optional, and if
not specified, will default to 0777
.
run_prg(LIST)
usage($verbosity)
$verbosity
argument has the same meaning as the -verbose
option to Pod::Usage::pod2usage
.
$Id: Util.pm,v 1.5 2002/09/13 07:24:18 ehood Exp $
Earl Hood, earl@earlhood.com
This module is part of the mharc archiving system and comes with ABSOLUTELY NO WARRANTY and may be copied only under the terms of the GNU General Public License, which may be found in the mharc distribution.
MHArc::Util - General utilities for mail archiving system. |