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

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::Print qw(err);

# Error.
err '1';

# Output:
# 1

EXAMPLE2

use strict;
use warnings;

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

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

# Output:
# 1

EXAMPLE3

package Example3;

use strict;
use warnings;

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

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

package main;

use strict;
use warnings;

# Run.
Example3::test();

# Output:
# Example3: 1

DEPENDENCIES

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

AUTHOR

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

http://skim.cz

LICENSE AND COPYRIGHT

© 2008-2024 Michal Josef Špaček

BSD 2-Clause License

VERSION

0.34