NAME
Error::Pure::ANSIColor::PrintVar - Error::Pure module for simple error print with all variables with ANSIColor support.
SYNOPSIS
use Error::Pure::ANSIColor::PrintVar qw(err);
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;
use warnings;
use Error::Pure::ANSIColor::PrintVar qw(err);
# Error.
err '1';
# Output:
# 1
EXAMPLE2
use strict;
use warnings;
use Error::Pure::ANSIColor::PrintVar qw(err);
# Error.
err '1', '2', '3';
# Output:
# 1
# 2: 3
EXAMPLE3
package Example3;
use strict;
use warnings;
use Error::Pure::ANSIColor::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::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
LICENSE AND COPYRIGHT
© 2013-2022 Michal Josef Špaček
BSD 2-Clause License
VERSION
0.29