Michal Špaček > Error-Pure > Error::Pure::Print

Download:
Error-Pure-0.21.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.21   Source  

NAME ^

Error::Pure::Print - Error::Pure module for simple error print.

SYNOPSIS ^

 use Error::Pure::Print qw(err);
 err 'This is a fatal error', 'name', 'value';

SUBROUTINES ^

err(@messages)
 Process error with messages @messages.

EXAMPLE1 ^

 # Pragmas.
 use strict;
 use warnings;

 # Modules.
 use Error::Pure::Print qw(err);

 # Error.
 err '1';

 # Output:
 # 1

EXAMPLE2 ^

 # Pragmas.
 use strict;
 use warnings;

 # Modules.
 use Error::Pure::Print qw(err);

 # Error.
 err '1', '2', '3';

 # Output:
 # 1

EXAMPLE3 ^

 package Example3;
 
 # Pragmas.
 use strict;
 use warnings;

 # Modules.
 use Error::Pure::Print qw(err);

 # Test with error.
 sub test {
         err '1', '2', '3';
 };

 package main;

 # Pragmas.
 use strict;
 use warnings;

 # Run.
 Example3::test();

 # Output:
 # Example3: 1

DEPENDENCIES ^

Error::Pure::Output::Text, Error::Pure::Utils, Exporter, List::MoreUtils, Readonly.

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::Output::Text, Error::Pure::PrintVar, Error::Pure::Utils.

REPOSITORY ^

https://github.com/tupinek/Error-Pure

AUTHOR ^

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

http://skim.cz

LICENSE AND COPYRIGHT ^

 © Michal Špaček 2008-2014
 BSD 2-Clause License

VERSION ^

0.21

syntax highlighting: