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

BERT::Dict - Dict data type for BERT

SYNOPSIS

  use BERT;
  my $dict = BERT::Dict->new([ BERT::Atom->new('key') => 'value' ]);
  my $arrayref = $dict->value;

DESCRIPTION

This module is intended to be used with BERT to specify a dictionary value.

See the BERT specification at http://bert-rpc.org/.

METHODS

$dict = BERT::Dict->new($arrayref)

Creates a new BERT::Dict object initialized with $arrayref as its dictionary value.

$arrayref = $dict->value

Returns all of the arguments that were passed to new() as-is.

AUTHOR

Sherwin Daganato <sherwin@daganato.com>

LICENSE

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

SEE ALSO

BERT