Bencode
view release on metacpan or search on metacpan
lib/Bencode.pm view on Meta::CPAN
zeroes.
=item C<malformed integer data at %s>
Your data contained something that was supposed to be an integer but didn't
make sense.
=item C<dict key not in sort order at %s>
Your data violates the I<bencode> format constaint that dict keys must appear
in lexical sort order.
=item C<duplicate dict key at %s>
Your data violates the I<bencode> format constaint that all dict keys must be
unique.
=item C<dict key is not a string at %s>
Your data violates the I<bencode> format constaint that all dict keys be
strings.
=item C<dict key is missing value at %s>
Your data contains a dictionary with an odd number of elements.
=item C<nesting depth exceeded at %s>
Your data contains dicts or lists that are nested deeper than the $max_depth
passed to C<bdecode()>.
=item C<unhandled data type>
You are trying to serialise a data structure that consists of data types other
than
=over
=item *
scalars
=item *
references to arrays
=item *
references to hashes
=item *
references to scalars
=back
The format does not support this.
=back
=head1 BUGS AND LIMITATIONS
Strings and numbers are practically indistinguishable in Perl, so C<bencode()>
has to resort to a heuristic to decide how to serialise a scalar. This cannot
be fixed.
=head1 AUTHOR
Aristotle Pagaltzis <pagaltzis@gmx.de>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Aristotle Pagaltzis.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
( run in 4.479 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )