Query: cpanplus::error
OS: debian
Section: 3perl
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CPANPLUS::Error(3perl) Perl Programmers Reference Guide CPANPLUS::Error(3perl)NAMECPANPLUS::Error - error handling for CPANPLUSSYNOPSISuse CPANPLUS::Error qw[cp_msg cp_error];DESCRIPTIONThis module provides the error handling code for the CPANPLUS libraries, and is mainly intended for internal use.FUNCTIONScp_msg("message string" [,VERBOSE]) Records a message on the stack, and prints it to "STDOUT" (or actually $MSG_FH, see the "GLOBAL VARIABLES" section below), if the "VERBOSE" option is true. The "VERBOSE" option defaults to false. msg() An alias for "cp_msg". cp_error("error string" [,VERBOSE]) Records an error on the stack, and prints it to "STDERR" (or actually $ERROR_FH, see the "GLOBAL VARIABLES" sections below), if the "VERBOSE" option is true. The "VERBOSE" options defaults to true. error() An alias for "cp_error".CLASS METHODSCPANPLUS::Error->stack() Retrieves all the items on the stack. Since "CPANPLUS::Error" is implemented using "Log::Message", consult its manpage for the function "retrieve" to see what is returned and how to use the items. CPANPLUS::Error->stack_as_string([TRACE]) Returns the whole stack as a printable string. If the "TRACE" option is true all items are returned with "Carp::longmess" output, rather than just the message. "TRACE" defaults to false. CPANPLUS::Error->flush() Removes all the items from the stack and returns them. Since "CPANPLUS::Error" is implemented using "Log::Message", consult its manpage for the function "retrieve" to see what is returned and how to use the items.GLOBAL VARIABLES$ERROR_FH This is the filehandle all the messages sent to "error()" are being printed. This defaults to *STDERR. $MSG_FH This is the filehandle all the messages sent to "msg()" are being printed. This default to *STDOUT. perl v5.14.2 2014-09-29 CPANPLUS::Error(3perl)
Related Man Pages |
---|
cpanplus::error5.18(3pm) - mojave |
log::message::simple(3pm) - mojave |
cpanplus::error(3) - centos |
cpanplus::error(3pm) - suse |
log::message::simple(3pm) - suse |
Similar Topics in the Unix Linux Community |
---|
Error Message |
Sending Error msg from HP-UX to E-mail address |
Excluding certain paras from a file |
Error:readline() on closed filehandle Perl |
[stdin / stdout] Strategies for redirecting outputs |