From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

NAME

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

SYNOPSIS

err 'This is a fatal error', 'name', 'value';
# __or__
use Error::Pure qw(err);
$ENV{'ERROR_PURE_TYPE'} = 'ANSIColor::PrintVar';
err "This is a fatal error.", "name", "value";

SUBROUTINES

err

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

Process error with messages (error, error_key/value pairs).

EXAMPLE1

use strict;
# Error.
err '1';
# Output:
# 1

EXAMPLE2

use strict;
# Error.
err '1', '2', '3';
# Output:
# 1
# 2: 3

EXAMPLE3

package Example3;
use strict;
# Test with error.
sub test {
err '1', '2', '3';
}
package main;
use strict;
# Run.
Example3::test();
# Output:
# Example3: 1
# 2: 3

DEPENDENCIES

Error::Pure::Output::ANSIColor, Error::Pure::Utils, Exporter, List::Util, Readonly.

SEE ALSO

Task::Error::Pure

Install the Error::Pure modules.

REPOSITORY

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

AUTHOR

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

http://skim.cz

LICENSE AND COPYRIGHT

© 2013-2022 Michal Josef Špaček

BSD 2-Clause License

VERSION

0.29