Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Perl module for rewrite die by err from Error::Pure module.
Perl
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
inc/Module
t/Error-Pure-Always
.gitignore
Always.pm
Changes
LICENSE
MANIFEST
MANIFEST.SKIP
META.yml
Makefile.PL
README
SIGNATURE
TODO

README

NAME
    Error::Pure::Always - Perl module for rewrite die by err from
    Error::Pure module.

SYNOPSIS
     use Error::Pure::Always;

     perl -MError::Pure::Always perl_script.pl

EXAMPLE1
     # Pragmas.
     use strict;
     use warnings;

     # Modules.
     use Error::Pure::Always;

     # Set env error type.
     $ENV{'ERROR_PURE_TYPE'} = 'Die';

     # Error.
     die '1';

     # Output:
     # 1 at example1.pl line 9.

EXAMPLE2
     # Pragmas.
     use strict;
     use warnings;

     # Modules.
     use Error::Pure::Always;

     # Set env error type.
     $ENV{'ERROR_PURE_TYPE'} = 'ErrorList';

     # Error.
     die '1';

     # Output something like:
     # #Error [path_to_script:12] 1

EXAMPLE3
     # Pragmas.
     use strict;
     use warnings;

     # Modules.
     use Error::Pure::Always;

     # Set error type.
     $Error::Pure::TYPE = 'AllError';

     # Error.
     die '1';

     # Output something like:
     # ERROR: 1
     # main  err  path_to_script  12

DEPENDENCIES
    Error::Pure.

SEE ALSO
    Error::Pure, Error::Pure::AllError, Error::Pure::Die,
    Error::Pure::Error, Error::Pure::ErrorList, Error::Pure::HTTP::AllError,
    Error::Pure::HTTP::Error, Error::Pure::HTTP::ErrorList,
    Error::Pure::HTTP::Print, Error::Pure::HTTP::JSON, Error::Pure::JSON,
    Error::Pure::Output::JSON, Error::Pure::Output::Text,
    Error::Pure::Print.

ACKNOWLEDGMENTS
    Thanks for Carp::Always module.

REPOSITORY
    <https://github.com/tupinek/Error-Pure-Always>

AUTHOR
    Michal Špaček <mailto:skim@cpan.org>

    <http://skim.cz>

LICENSE AND COPYRIGHT
     © 2012-2015 Michal Špaček
     BSD 2-Clause License

VERSION
    0.06

Something went wrong with that request. Please try again.