NAME

Meta::Utils::Output - write output messages to console.

COPYRIGHT

Copyright (C) 2001 Mark Veltzer; All rights reserved.

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.

DETAILS

MANIFEST: Output.pm PROJECT: meta

SYNOPSIS

package foo; use Meta::Utils::Output qw(); my($object)=Meta::Utils::Output-new();> my($result)=$object-method();>

DESCRIPTION

SPECIAL STDERR FILE

This is a central controller of output to the console. All output to the console (i.e. what usually you did using stdout and stderr) you should do through this.

EXPORTS

print($) get_file()

FUNCTION DOCUMENTATION

BEGIN

This is the BEGIN block for this module. It is executed when the module is loaded. Currently it just sets the autoflush on STDOUT which is not so by default. The reason I don't do this for STDERR bacause by default STDERR is already so.

print($)

This prints out an output method to the console.

get_file()

This method will return a file handle that other code can write to in order to get output on the console.

BUGS

None.

AUTHOR

Mark Veltzer <mark2776@yahoo.com>

HISTORY

None.

SEE ALSO

Nothing.

TODO

-use Text::Wrap here to wrap up lines.

-do colorization.

-do reading of arguments from XML options database and control in here.

-read whether we should do the flushing from the XML options file.