Convert-Bencode
view release on metacpan or search on metacpan
bencoded integer (floating points are not implemented, and would be
returned as a string rather than a integer). If the value was a array
ref, it returns a bencoded list, with all the values of that array also
bencoded recursivly. If the value was a hash ref, it returns a bencoded
dictionary (which for all intents and purposes can be thought of as a
synonym for hash) containing the recursivly bencoded key and value pairs
of the hash.
Decoding
"bdecode()" expects to be passed a single scalar containing the bencoded
string to be decoded. Its return value will be either a hash ref, a
array ref, or a scalar, depending on whether the outer most element of
the bencoded string was a dictionary, list, or a string/integer
respectivly.
SEE ALSO
The description of bencode is part of the bittorrent protocol
specification which can be found at
http://bitconjurer.org/BitTorrent/protocol.html
BUGS
lib/Convert/Bencode.pm view on Meta::CPAN
points are not implemented, and would be returned as a string rather than a
integer). If the value was a array ref, it returns a bencoded list, with all
the values of that array also bencoded recursivly. If the value was a hash ref,
it returns a bencoded dictionary (which for all intents and purposes can be
thought of as a synonym for hash) containing the recursivly bencoded key and
value pairs of the hash.
=head2 Decoding
C<bdecode()> expects to be passed a single scalar containing the bencoded string
to be decoded. Its return value will be either a hash ref, a array ref, or a
scalar, depending on whether the outer most element of the bencoded string
was a dictionary, list, or a string/integer respectivly.
=head1 SEE ALSO
The description of bencode is part of the bittorrent protocol specification
which can be found at http://bitconjurer.org/BitTorrent/protocol.html
=head1 BUGS
( run in 0.265 second using v1.01-cache-2.11-cpan-26ccb49234f )