Tobias Tacke > Fukurama-Class > Fukurama::Class::Carp

Download:
Fukurama-Class-0.032.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Fukurama::Class::Carp - Carp-Adapter to easy extend the carp-level

VERSION ^

Version 0.01 (beta)

SYNOPSIS ^

 use Fukurama::Class::Carp;
  
 sub foo {
        bar();
 }
 sub bar {
        baz();
 }
 sub baz {
        # would croak in foo()
        croak('its not my fault', 1);
 }

DESCRIPTION ^

This module provides a simple method to change the $Carp::CarpLevel locally. This is a helperclass for Fukurama::Class.

CONFIG ^

-

EXPORT ^

_carp( message:STRING, [ addCarpLevel:INT ] ) return:VOID

It's like Carp::carp(). It will warn about an error in the callers context. But you can increase the carp-level with a parameter

_croak( message:STRING, [ addCarpLevel:INT ] ) return:VOID

It's like Carp::croak(). It will die an error in the callers context. But you can increase the carp-level with a parameter

METHODS ^

-

AUTHOR, BUGS, SUPPORT, ACKNOWLEDGEMENTS, COPYRIGHT & LICENSE ^

see perldoc of Fukurama::Class

syntax highlighting: