Re: Net::BitTorrent::File problems

2007-01-12 Thread Andy Greenwood
Never mind. I got it straightened out. I just had to ... my $pieces = $info->{'pieces'}; $pieces =~ s/(.)/sprintf("%02x",ord($1))/egs; ... On 1/11/07, Andy Greenwood <[EMAIL PROTECTED]> wrote: I'm trying to extract the SHA1 hashes out of a .torrent file using Net::BitTorrent::File, among other

Net::BitTorrent::File problems

2007-01-11 Thread Andy Greenwood
I'm trying to extract the SHA1 hashes out of a .torrent file using Net::BitTorrent::File, among other information, but can't seem to figure out how to get them. I keep getting binary data, not the ascii hash. Can anyone tell me what I'm doing wrong here? #!/usr/bin/perl use strict; use warnings;