NAME
BERT::Encoder - BERT serializer
SYNOPSIS
use BERT::Encoder;
my $encoder = BERT::Encoder->new;
my $bert = $encoder->encode([ 1, 'foo', [ 2, [ 3, 4 ] ], 5 ]);
DESCRIPTION
This module encodes Perl data structures into BERT format.
See the BERT specification at http://bert-rpc.org/.
METHODS
- $encoder = BERT::Encoder->new
-
Creates a new BERT::Encoder object.
- $bert = $encoder->encode($scalar)
-
Returns the BERT representation for the given Perl data structure. 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 BERT::Atom BERT::Boolean BERT::Dict BERT::Time BERT::Tuple