The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Error::Pure::PrintVar - Error::Pure module for simple error print with all variables.

SYNOPSIS

 use Error::Pure::PrintVar qw(err);

 err 'This is a fatal error', 'name', 'value';

SUBROUTINES

err

 err 'This is a fatal error', 'name', 'value';

Process error with message(s). There is key => value list after first message.

EXAMPLE1

 use strict;
 use warnings;

 use Error::Pure::PrintVar qw(err);

 # Error.
 err '1';

 # Output:
 # 1

EXAMPLE2

 use strict;
 use warnings;

 use Error::Pure::PrintVar qw(err);

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

 # Output:
 # 1
 # 2: 3

EXAMPLE3

 package Example3;

 use strict;
 use warnings;

 use Error::Pure::PrintVar qw(err);

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

 package main;

 use strict;
 use warnings;

 # Run.
 Example3::test();

 # Output:
 # Example3: 1
 # 2: 3

DEPENDENCIES

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

SEE ALSO

Task::Error::Pure

Install the Error::Pure modules.

REPOSITORY

https://github.com/michal-josef-spacek/Error-Pure

AUTHOR

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

http://skim.cz

LICENSE AND COPYRIGHT

© 2008-2020 Michal Josef Špaček

BSD 2-Clause License

VERSION

0.26