ClearCase-ClearPrompt

 view release on metacpan or  search on metacpan

ClearPrompt.pm  view on Meta::CPAN

I/O streams and the Perl C<warn()> and C<die()> functions.  Now, since
C<warn()> and C<die()> send their output to stderr they could be
subsumed by the STDERR channel, but they have different semantics and
are thus treated separately. Messages thrown by warn/die are
I<anticipated> errors from within the current (perl) process, whereas
other messages arriving on stderr will typically be I<unexpected>
messages not under the control of the running script (for instance
those from a backquoted cleartool command). This distinction is quite
important in triggers, where the former may represent a policy decision
and the latter a plain old programming bug or system error such as a
locked VOB. Warn/die captures are also displayed with the appropriate
GUI icons and the title C<Warning> or C<Error>.

The 4 channels are known to ClearPrompt as WARN, DIE, STDOUT, and
STDERR.  To capture any of them to clearprompt just specify them with a
leading C<+> at I<use> time:

	use ClearCase::ClearPrompt qw(+STDERR +WARN +DIE);

These 3 "error channels" can also be requested via the meta-command



( run in 1.101 second using v1.01-cache-2.11-cpan-49f99fa48dc )