MIME::Tools | MIME::Body | MIME::Decoder | MIME::Entity |
MIME::Head | MIME::IO | MIME::Latin1 | MIME::Parser |
MIME::ParserBase | MIME::ToolUtils | MIME::Tools | MIME::Words |
MIME:: |
MIME::ToolUtils - MIME-tools kit configuration and utilities
A catch-all place for miscellaneous global information related to the configuration of the MIME-tools kit.
Since most of the MIME-tools modules "use" it by name, this module is really not subclassable.
# Get current debugging flag: $current = config MIME::ToolUtils 'DEBUGGING';
# Invert it: config MIME::ToolUtils DEBUGGING => !$current;
The complete list of configuration variables is listed below. They are all-uppercase, possibly with underscores. To get a list of all valid config variables in your program, and output their current values, you can say:
foreach $var (sort (config MIME::ToolUtils)) { print "MIME config $var = ", (config MIME::ToolUtils $var), "\n"; }
Note that some of these variables may have nice printed representations, while others may not.
Rationale: I wanted access to the configuration to be done via some kind of controllable public interface, in case "setting a config variable" involved making a subroutine call. This approach is an attempt to do so while preventing an explosion of lots of little methods, many of which will do nothing more than set an entry in the internal %CONFIG hash. I suppose a tied hash would have been slicker.
You may set/get all of these via the config
method.
config MIME::ToolUtils VERSION => 1.0;
Please notice that as of 3.x, this happens to be the same as the $MIME::ToolUtils::VERSION: however, this was not always the case, and someday may not be the case again.
Copyright (c) 1996, 1997 by Eryq / eryq@zeegee.com
All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
$Revision: 4.102 $ $Date: 1997/12/14 03:07:10 $
Note: this file is used to set the version of the entire MIME-tools distribution.