NAME

Perinci::Result::Util - Utilities related to enveloped result

VERSION

This document describes version 0.03 of Perinci::Result::Util (from Perl distribution Perinci-Result-Util), released on 2015-09-03.

SYNOPSIS

use Perinci::Result::Util qw(is_env_res);

say is_env_res([200, "OK"]); # 1
say is_env_res("ok");        # 0
say is_env_res([1, 2, 3]);   # 0

FUNCTIONS

is_env_res($res) => BOOL

Return true if $res looks like enveloped result. It employs some heuristics.

SEE ALSO

Rinci::function

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Perinci-Result-Util.

SOURCE

Source repository is at https://github.com/perlancar/perl-Perinci-Result-Util.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Result-Util

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.