Convert::Bencode 1.03 review

Download
by rbytes.net on

License: Perl Artistic License
File size: 10K
Developer: R. Kyle Murphy
0 stars award from rbytes.net

Convert::Bencode are functions for converting to/from bencoded strings.

SYNOPSIS

use Convert::Bencode qw(bencode bdecode);

my $string = "d4:ainti12345e3:key5:value4:type4:teste";
my $hashref = bdecode($string);

foreach my $key (keys(%{$hashref})) {
print "Key: $key, Value: ${$hashref}{$key}n";
}

my $encoded_string = bencode($hashref);
print $encoded_string."n";

This module provides two functions, bencode and bdecode, which encode and decode bencoded strings respectivly.

Requirements:
Perl

Convert::Bencode 1.03 keywords