Convert::Bencode_XSConvert::Bencode_XS is a Perl module for faster conversions to/from Bencode format. | |
Download |
Convert::Bencode_XS Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Giulio Motta
- Publisher web site:
- http://search.cpan.org/~giulienk/Audio-Beep-0.11/Beep.pod
Convert::Bencode_XS Tags
Convert::Bencode_XS Description
Convert::Bencode_XS is a Perl module for faster conversions to/from Bencode format. Convert::Bencode_XS is a Perl module for faster conversions to/from Bencode format.SYNOPSIS use Convert::Bencode_XS qw(bencode bdecode); use Data::Dumper; print "Serializing:n", bencode(, "XXX"]), "nn"; print Dumper bdecode('d3:fool3:bar4:stube6:numberi123ee'); __END__ Serializing: li123el0:e3:XXXe $VAR1 = { 'number' => '123', 'foo' => };bencode($stuff)Returns a bencoded string representing what's in $stuff. $stuff can be either a scalar, an array reference or a hash reference. Every nesting of these data structures is allowed, other ones will croak.bdecode($bencoded)Returns a Perl data structure: it could be either a scalar, array reference or hash reference depending on what's in $bencoded. Dictionaries are converted in hashes, lists in arrays, scalars in strings. If $COERCE (see below) is set to a false value then scalars encoded like integers will be cleanse() before being returned so that a re-serialization of the structure will give back exactly the same bencoded string.What's New in This Release:· Perl
Convert::Bencode_XS Related Software