Kevin Ryde > PerlIO-via-EscStatus > PerlIO::via::EscStatus::ShowNone

Download:
PerlIO-via-EscStatus-11.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 11   Source  

NAME ^

PerlIO::via::EscStatus::ShowNone - suppress all status lines

SYNOPSIS ^

 use PerlIO::via::EscStatus::ShowNone;
 binmode (STDOUT, ':via(EscStatus::ShowNone)') or die;

DESCRIPTION ^

EscStatus::ShowNone is a variant of the EscStatus layer which doesn't show any status lines coming through the stream at all, only the ordinary output. This can be used for a batch mode or non-interactive mode in a program.

Of course for batch mode it's also possible simply not to print statuses in the first place. You can decide whether it's easier to check a mode flag at the print, or push a layer to strip what's printed. A layer may be easier for suppressing prints from a library or independent parts of a program.

See examples/shownone.pl in the PerlIO-via-EscStatus sources for a complete program using ShowNone.

SEE ALSO ^

PerlIO::via::EscStatus, PerlIO::via

HOME PAGE ^

http://user42.tuxfamily.org/perlio-via-escstatus/index.html

LICENSE ^

Copyright 2008, 2009, 2010, 2011, 2012 Kevin Ryde

PerlIO-via-EscStatus 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 3, or (at your option) any later version.

PerlIO-via-EscStatus 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 PerlIO-via-EscStatus. If not, see http://www.gnu.org/licenses/.

syntax highlighting: