The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Data::Object::Base::Hash

ABSTRACT

Data-Object Abstract Hash Class

SYNOPSIS

  package My::Hash;

  use parent 'Data::Object::Base::Hash';

  my $hash = My::Hash->new({1..4});

DESCRIPTION

Data::Object::Base::Hash provides routines for operating on Perl 5 hash references.

METHODS

This package implements the following methods.

new

  new(HashRef $arg1) : Object

The new method expects a list or hash reference and returns a new class instance.

new example
  # given 1..4

  package My::Hash;

  use parent 'Data::Object::Base::Hash';

  my $hash = My::Hash->new({1..4});