<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">NAME
    Data::Check::Structure - Check structure of data

VERSION
    This document describes version 0.03 of Data::Check::Structure (from
    Perl distribution Data-Check-Structure), released on 2014-07-14.

SYNOPSIS
DESCRIPTION
    This small module provides several simple routines to check the
    structure of data, e.g. whether data is an array of arrays ("aoa"),
    array of scalars ("aos"), and so on.

FUNCTIONS
  is_aos($data, \%opts) =&gt; bool
    Check that data is an array of scalars. Examples:

     is_aos([]);                     # true
     is_aos(['a', 'b']);             # true
     is_aos(['a', []]);              # false
     is_aos([1,2,3, []], {max=&gt;3});  # true

    Known options: "max" (maximum number of items to check, undef means
    check all items).

  is_aoa($data, \%opts) =&gt; bool
    Check that data is an array of arrays. Examples:

     is_aoa([]);                          # true
     is_aoa([[1], [2]]);                  # true
     is_aoa([[1], 'a']);                  # false
     is_aoa([[1],[],[], 'a'], {max=&gt;3});  # true

    Known options: "max" (maximum number of items to check, undef means
    check all items).

  is_aoaos($data, \%opts) =&gt; bool
    Check that data is an array of arrays of scalars. Examples:

     is_aoaos([]);                           # true
     is_aoaos([[1], [2]]);                   # true
     is_aoaos([[1], [{}]]);                  # false
     is_aoaos([[1],[],[], [{}]], {max=&gt;3});  # true

    Known options: "max" (maximum number of items to check, undef means
    check all items).

  is_aoh($data, \%opts) =&gt; bool
    Check that data is an array of hashes. Examples:

     is_aoh([]);                             # true
     is_aoh([{}, {a=&gt;1}]);                   # true
     is_aoh([{}, 'a']);                      # false
     is_aoh([{},{},{a=&gt;1}, 'a'], {max=&gt;3});  # true

    Known options: "max" (maximum number of items to check, undef means
    check all items).

  is_aohos($data, \%opts) =&gt; bool
    Check that data is an array of hashes of scalars. Examples:

     is_aohos([]);                                 # true
     is_aohos([{a=&gt;1}, {}]);                       # true
     is_aohos([{a=&gt;1}, {b=&gt;[]}]);                  # false
     is_aohos([{a=&gt;1},{},{}, {b=&gt;[]}], {max=&gt;3});  # true

    Known options: "max" (maximum number of items to check, undef means
    check all items).

  is_hos($data, \%opts) =&gt; bool
    Check that data is a hash of scalars. Examples:

     is_hos({});                                   # true
     is_hos({a=&gt;1, b=&gt;2});                         # true
     is_hos({a=&gt;1, b=&gt;[]});                        # false
     is_hos({a=&gt;1, b=&gt;2, c=&gt;3, d=&gt;[]}, {max=&gt;3});  # true (or false, depending on random hash key ordering)

    Known options: "max" (maximum number of items to check, undef means
    check all items).

  is_hoa($data, \%opts) =&gt; bool
    Check that data is a hash of arrays. Examples:

     is_hoa({}) );       # true
     is_hoa({a=&gt;[]}) );  # true
     is_hoa({a=&gt;1}) );   # false

    Known options: "max" (maximum number of items to check, undef means
    check all items).

  is_hoaos($data, \%opts) =&gt; bool
    Check that data is a hash of arrays of scalars. Examples:

     is_hoaos({}) );         # true
     is_hoaos({a=&gt;[]}) );    # true
     is_hoaos({a=&gt;[1]}) );   # true
     is_hoaos({a=&gt;1}) );     # false
     is_hoaos({a=&gt;[{}]}) );  # false

    Known options: "max" (maximum number of items to check, undef means
    check all items).

  is_hoh($data, \%opts) =&gt; bool
    Check that data is a hash of hashes. Examples:

     is_hoh({}) );       # true
     is_hoh({a=&gt;{}}) );  # true
     is_hoh({a=&gt;1}) );   # false

    Known options: "max" (maximum number of items to check, undef means
    check all items).

  is_hohos($data, \%opts) =&gt; bool
    Check that data is a hash of hashes of scalrs. Examples:

     is_hohos({}) );            # true
     is_hohos({a=&gt;{}}) );       # true
     is_hohos({a=&gt;{b=&gt;1}}) );   # true
     is_hohos({a=&gt;1}) );        # false
     is_hohos({a=&gt;{b=&gt;[]}}) );  # false

    Known options: "max" (maximum number of items to check, undef means
    check all items).

HOMEPAGE
    Please visit the project's homepage at
    &lt;https://metacpan.org/release/Data-Check-Structure&gt;.

SOURCE
    Source repository is at
    &lt;https://github.com/sharyanto/perl-Data-Check-Structure&gt;.

BUGS
    Please report any bugs or feature requests on the bugtracker website
    &lt;https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Check-Structure&gt;

    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
    Steven Haryanto &lt;stevenharyanto@gmail.com&gt;

COPYRIGHT AND LICENSE
    This software is copyright (c) 2014 by Steven Haryanto.

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

</pre></body></html>