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 - BERT serializer/deserializer

SYNOPSIS

  use BERT;

  my $bert = encode_bert([ 1, 'foo', [ 2, [ 3, 4 ] ], 5 ]);
  my $data = decode_bert($bert);

DESCRIPTION

This module provides a thin wrapper around BERT::Encoder and BERT::Decoder, which converts Perl data structures to BERT format and vice versa, respectively.

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

FUNCTIONS

$bert = encode_bert($data)

Returns the BERT representation for the given Perl data structure. Croaks on error.

$data = decode_bert($bert)

Returns the Perl data structure for the given BERT binary. Croaks on error.

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::Encoder BERT::Decoder