NAME

Data::CSel::WrapStruct::Hash - Wrap a hashref

VERSION

This document describes version 0.004 of Data::CSel::WrapStruct::Hash (from Perl distribution Data-CSel-WrapStruct), released on 2019-07-29.

DESCRIPTION

Some notes:

  • The children are hash values, ordered by keys

METHODS

new($hash, $parent) => obj

value() => hash

Return the hash.

length() => int

The number of keys. An empty hash will return 0.

has_key($key) => bool

Return true if hash has a key with value of $key. Equivalent to:

exists($hash->{$key})

key($key) => any

Retrieve the value of a hash key. Equivalent to:

$hash->{$key}

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Data-CSel-WrapStruct.

SOURCE

Source repository is at https://github.com/perlancar/perl-Data-CSel-WrapStruct.

BUGS

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

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) 2019, 2016 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.