Data::Perl::Collection::Hash::MooseLike(3) | User Contributed Perl Documentation | Data::Perl::Collection::Hash::MooseLike(3) |
Data::Perl::Collection::Hash::MooseLike - Collection::Hash subclass that simulates Moose's native traits.
version 0.001009
use Data::Perl::Collection::Hash::MooseLike; my $hash = Data::Perl::Collection::Hash::MooseLike->new(a => 1, b => 2); $hash->values; # (1, 2) $hash->set('foo', 'bar'); # (a => 1, b => 2, foo => 'bar')
This class provides a wrapper and methods for interacting with a hash. All methods are written to emulate/match existing behavior that exists with Moose's native traits.
In list context it returns a list of values in the hash for the given keys. In scalar context it returns the value for the last key specified.
This method requires at least two arguments, and expects an even number of arguments.
In list context it returns a list of values in the hash for the deleted keys. In scalar context it returns the value for the last key specified.
Toby Inkster <tobyink@cpan.org>
This software is copyright (c) 2020 by Matthew Phillips <mattp@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.
2020-10-16 | perl v5.34.0 |