Path: usenet.cis.ufl.edu!usenet.eel.ufl.edu!spool.mu.edu!howland.reston.ans.net!newsfeed.internetmci.com!psgrain!nntp.teleport.com!usenet
From: Alan Stebbens <[email protected]>
Newsgroups: comp.lang.perl.announce,comp.lang.perl.misc
Subject: ANNOUNCE: Sys::OutPut.pm simple output utility module.
Followup-To: comp.lang.perl.misc
Date: 4 Mar 1996 22:29:37 GMT
Organization: CCSE, Univ. of CA, Santa Barbara
Lines: 42
Approved: [email protected] (comp.lang.perl.announce)
Message-ID: <[email protected]>
NNTP-Posting-Host: julie.teleport.com
X-Disclaimer: The "Approved" header verifies header information for article transmission and does not imply approval of content.
Xref: usenet.cis.ufl.edu comp.lang.perl.announce:281 comp.lang.perl.misc:22690

Sys::OutPut is a Perl 5 module which defines the subroutines
"out", "put", "err", "talk", and "debug", all of which perform
printf-formatting of their arguments to either STDOUT or STDERR,
as appropriate, with or without trailing newlines, and
possibly depending upon the $quiet or $debug variables.

Basically, I don't like to write "printf STDERR" or "printf STDOUT", so
these little routines do it for me.  And, they take care of ensuring
that newlines are output when appropriate.

You would be surprised how much easier writing Perl scripts is when
you use these little routines.  The "debug" routine is particularly
useful when you can code like this:

   next if debug "I got this far."

The module has embedded POD text with which man or HTML pages can be
created.

For detailed usage information, you can do:

   pod2man Sys::OutPut.pm | nroff -man

The module is accompanied with a Makefile, this README, a test program
(test.pl), a reference test output file, and the GNU License, under
which this software is freely available.

The archives are available on:

   ftp://hub.ucsb.edu/pub/prog/perl/Sys-OutPut-$VER.shar
   ftp://hub.ucsb.edu/pub/prog/perl/Sys-OutPut-$VER.tar.gz

where $VER is the latest version.

The "tar.gz" archive is also available at the CPAN archive sites.

Contributions or improvements are welcome.
_______________________________________
Alan K. Stebbens <[email protected]>
College of Engineering
University of California, Santa Barbara